From 257cc5c30c94dd173fc4992691002e94a675ad30 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 28 Dec 2011 08:36:00 +0100 Subject: bash: Set (MAN)PAGER only if vimpager is available --- .config/bash/environment.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/bash/environment.sh b/.config/bash/environment.sh index c294711..fd9f496 100644 --- a/.config/bash/environment.sh +++ b/.config/bash/environment.sh @@ -13,8 +13,10 @@ fi # view -c 'set ft=man' -c 'set titlestring=man' -c 'set number!' -" # since vim has support - use built in ones.. -export MANPAGER="vimmanpager" -export PAGER="vimpager" +if [ `hash vimpager 2>&-` ]; then + export MANPAGER="vimmanpager" + export PAGER="vimpager" +fi if [[ ${EUID} == 0 ]]; then DELIM_COL='\[\e[0;31m\]' -- cgit