From fb7dd4a4ee2b2a930b99eec7a4f752d5a395c42c Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 21 Feb 2023 15:27:02 -0800 Subject: [PATCH] Add pandoc PDF alias --- hosts/home.nix | 4 ++++ 1 file changed, 4 insertions(+) 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)"