From 4ad1bbb1650974106dade14eeaf68e9f91430c3b Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 15 Apr 2014 15:09:21 +0200 Subject: Fixing vimpager to work as less replacement properly. --- .zsh.after/export.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.zsh.after/export.zsh b/.zsh.after/export.zsh index 9ffdc95..4934ad7 100644 --- a/.zsh.after/export.zsh +++ b/.zsh.after/export.zsh @@ -3,10 +3,10 @@ export TERM=rxvt-unicode-256color export REPORTTIME=30 -if [[ "$HOST" == *giev* ]];then - export PAGER="less -j4" -else +if [[ -x /usr/bin/vimpager ]];then export PAGER="vimpager" +else + export PAGER="less -j4" fi export GREP_COLOR="1;33" -- cgit v1.2.3-70-g09d2