diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-30 18:21:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-08-30 18:21:33 +0200 |
commit | 904f774468ac042fe541e1a4f7f27b3a610a4a2b (patch) | |
tree | 211af88e8398deb4c7fc1affdc43429f28d82bf3 | |
parent | 8bb408f9b674cb906620f5266c28687ae3925c58 (diff) |
zshenv: Don't hardcode lesspipe path
-rw-r--r-- | etc/env | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,10 +16,10 @@ export LESS='--silent --no-init --clear-screen --RAW-CONTROL-CHARS --quit-if-one export HOST export COLUMNS export LINES -if [[ -x /usr/bin/lesspipe ]] { - export LESSOPEN='| /usr/bin/lesspipe %s' - export LESSCLOSE='/usr/bin/lesspipe %s %s' -} +if which lesspipe &> /dev/null; then + export LESSOPEN='| lesspipe %s' + export LESSCLOSE='lesspipe %s %s' +fi # local settings, not tracked with git [[ -r $ZDIR/local-env ]] && source $ZDIR/local-env |