diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-22 17:58:34 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-08-22 17:58:34 +0200 |
commit | 3872a5ebe5767e10b780cf26658f419d3e7ed87f (patch) | |
tree | 0b5f4c37e5fb5a6b6443b3b6a6e8a9288249a9e3 /etc/rc | |
parent | 37d2bc6ad47ebc7d597909980659ed20b6074cb0 (diff) |
Replace [] by internal test
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -7,10 +7,10 @@ ## mostly internal stuff ZDIR=$HOME/packages/zsh/etc uname=$(uname) -alias 'linux:'='[ $uname = Linux ] &&' -alias 'non-linux:'='[ $uname = Linux ] ||' +alias 'linux:'='[[ $uname = Linux ]] &&' +alias 'non-linux:'='[[ $uname = Linux ]] ||' alias 'ls-colors:'='which dircolors &> /dev/null &&' -alias 'openbsd:'='[ $uname = OpenBSD ] &&' +alias 'openbsd:'='[[ $uname = OpenBSD ]] &&' ## include the actual config source $ZDIR/modules @@ -31,7 +31,7 @@ source $ZDIR/completion ## misc bindkey -e ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors) -[ -r $HOME/var/tmp/envstore-raw-$UID ] && . $HOME/var/tmp/envstore-raw-$UID +[[ -r $HOME/var/tmp/envstore-raw-$UID ]] && . $HOME/var/tmp/envstore-raw-$UID mesg n umask 077 |