summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-10-07 19:40:23 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-10-07 19:40:23 +0200
commitf9a5ce35b1a6e1b6f89883d01ae07f881582edda (patch)
tree39cbb757f0ddeaa6d7ac67227f0d5738b6ef2d55 /.zshrc
parent9541406225d954fd578d6daa9565077234a00ba4 (diff)
downloaddotfiles-f9a5ce35b1a6e1b6f89883d01ae07f881582edda.tar.gz
dotfiles-f9a5ce35b1a6e1b6f89883d01ae07f881582edda.tar.xz
zshrc: only use vimpager when available; fix whitespace error
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index 427532c..3d31750 100644
--- a/.zshrc
+++ b/.zshrc
@@ -188,8 +188,10 @@ export OOO_FORCE_DESKTOP=gnome
export EDITOR=vim
export VISUAL=$EDITOR
export PAGER=less
-export MANPAGER=vimpager
-export PERLDOC_PAGER=vimpager
+if type vimpager &>/dev/null; then
+ export MANPAGER=vimpager
+ export PERLDOC_PAGER=vimpager
+fi
export LESSCHARSET="UTF-8"
export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-'
export LESS='-i -n -w -g -M -R -P%t?f%f \
@@ -811,7 +813,7 @@ source $HOME/.zshrc.local
# }}}
-# Show again
+# Show again
stty echo
# vim: set ft=zsh: