From 39496d425558bea39e4b2b0bd4eadbb26add1cbf Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Oct 2008 00:46:45 +0200 Subject: use check_com instead of 'ls-colors:' --- etc/rc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/rc') diff --git a/etc/rc b/etc/rc index cf8d37f..65d9cfa 100644 --- a/etc/rc +++ b/etc/rc @@ -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 -- cgit v1.2.3