summaryrefslogtreecommitdiff
path: root/etc/env
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:21:55 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-21 23:21:55 +0100
commitb330cd1311500f3896ee701c4dea27e9160a8c9b (patch)
tree0b001bdef9bafb60436bfa01cb2361e7deca6900 /etc/env
parentec6c924f8791926693a515524b27eb805be50f63 (diff)
Use [[ -n $command[...] ]] instead of which .. &> /dev/null
Diffstat (limited to 'etc/env')
-rw-r--r--etc/env4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/env b/etc/env
index 9a94ed5..3072302 100644
--- a/etc/env
+++ b/etc/env
@@ -16,10 +16,10 @@ export LESS='--silent --no-init --clear-screen --RAW-CONTROL-CHARS --quit-if-one
export HOST
export COLUMNS
export LINES
-if which lesspipe &> /dev/null; then
+if [[ -n $commands[lesspipe] ]] {
export LESSOPEN='| lesspipe %s'
export LESSCLOSE='lesspipe %s %s'
-fi
+}
# local settings, not tracked with git
[[ -r $ZDIR/local-env ]] && source $ZDIR/local-env