diff --git a/hosts/home.nix b/hosts/home.nix index 849904f..c28ea77 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -105,6 +105,10 @@ in # Change to directory when exiting ranger with Q # https://github.com/ranger/ranger/issues/1554#issuecomment-491650123 bashrcExtra = '' + function pdf { + pandoc "$1" -o "''${1%.*}.pdf" -V colorlinks=true -V linkcolor=blue + } + function ranger { local IFS=$'\t\n' local tempfile="$(mktemp -t tmp.XXXXXX)"