summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-22 17:58:34 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-22 17:58:34 +0200
commit3872a5ebe5767e10b780cf26658f419d3e7ed87f (patch)
tree0b5f4c37e5fb5a6b6443b3b6a6e8a9288249a9e3 /etc/rc
parent37d2bc6ad47ebc7d597909980659ed20b6074cb0 (diff)
Replace [] by internal test
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 4fb07f5..c0c41aa 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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