diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-09 00:46:45 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-09 00:46:45 +0200 |
commit | 39496d425558bea39e4b2b0bd4eadbb26add1cbf (patch) | |
tree | b69d32d73dbfc65c979fb86f9e2dc4bc3cd59d76 /etc/rc | |
parent | c5d3e6462d43f501c00acab8e5e3b6ed18434542 (diff) |
use check_com instead of 'ls-colors:'
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -8,7 +8,6 @@ uname=$(uname) alias 'linux:'='[[ $uname = Linux ]] &&' alias 'non-linux:'='[[ $uname = Linux ]] ||' -alias 'ls-colors:'='which dircolors &> /dev/null &&' alias 'openbsd:'='[[ $uname = OpenBSD ]] &&' ## include the actual config @@ -33,15 +32,15 @@ source $ZDIR/completion ## misc bindkey -e -ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors) +check_com -c dircolors && eval $(dircolors -b $HOME/packages/zsh/etc/dircolors) mesg n umask 077 ## cleanup unalias 'linux:' unalias 'non-linux:' -unalias 'ls-colors:' unalias 'openbsd:' +unfunction check_com unfunction xexport unfunction xsource unset uname |