Add pandoc PDF alias

inky
Elnu 2 years ago
parent bbd84398c5
commit fb7dd4a4ee

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

Loading…
Cancel
Save