diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 23:21:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-11-21 23:21:55 +0100 |
commit | b330cd1311500f3896ee701c4dea27e9160a8c9b (patch) | |
tree | 0b001bdef9bafb60436bfa01cb2361e7deca6900 | |
parent | ec6c924f8791926693a515524b27eb805be50f63 (diff) |
Use [[ -n $command[...] ]] instead of which .. &> /dev/null
-rw-r--r-- | etc/env | 4 | ||||
-rw-r--r-- | etc/rc | 2 |
2 files changed, 3 insertions, 3 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 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 @@ -100,7 +100,7 @@ export MAKEFLAGS=j$(grep -c '^processor' /proc/cpuinfo) [[ $path[1] = $HOME/bin ]] || export PATH=$HOME/bin:$PATH # Add manuals from caretaker to manpath -which manpath &> /dev/null && [[ -z $MANPATH ]] && export MANPATH=$(manpath):$HOME/packages/.collected/man +[[ -n $commands[manpath] && -z $MANPATH ]] && export MANPATH=$(manpath):$HOME/packages/.collected/man # }}} # {{{ MIME parameters |