summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 82300a0..337fa80 100644
--- a/etc/rc
+++ b/etc/rc
@@ -4,6 +4,7 @@
ZDIR=$HOME/packages/zsh/etc
uname=$(uname)
alias 'linux:'='[ $uname = Linux ] &&'
+alias 'ls-colors:'='which dircolors &> /dev/null &&'
alias 'openbsd:'='[ $uname = OpenBSD ] &&'
## include the actual config
@@ -23,12 +24,13 @@ source $ZDIR/completion
## misc
bindkey -e # EMACS bindings
-linux: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
+ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
trap 'echo zsh: Program terminated with exit status $?' ZERR
mesg n
umask 077
## cleanup
unalias 'linux:'
+unalias 'ls-colors:'
unalias 'openbsd:'
unset uname