summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/bash/environment.sh6
1 files 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\]'