summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-28 08:36:00 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-12-28 08:39:45 +0100
commit257cc5c30c94dd173fc4992691002e94a675ad30 (patch)
treeb2ef1523385ab59755542d5823f0a69f78e71714
parent7f0b5c9e2db0d671b8bdec0d2252feb94e55c37f (diff)
downloaddotfiles-257cc5c30c94dd173fc4992691002e94a675ad30.tar.gz
dotfiles-257cc5c30c94dd173fc4992691002e94a675ad30.tar.bz2
dotfiles-257cc5c30c94dd173fc4992691002e94a675ad30.zip
bash: Set (MAN)PAGER only if vimpager is available
-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\]'