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/completion | 2 +- etc/function | 2 +- etc/rc | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/completion b/etc/completion index a5eaff0..2ccda63 100644 --- a/etc/completion +++ b/etc/completion @@ -4,7 +4,7 @@ zstyle :compinstall filename ~/.zshrc zstyle ':completion:*' cache-path ~/var/cache/zsh zstyle ':completion:*' use-cache true -ls-colors: zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} +check_com -c dircolors && zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} # Mark the current selection when tabbing through possible completions zstyle ':completion:*' menu select=1 diff --git a/etc/function b/etc/function index 3ee4d4a..53ed3f1 100644 --- a/etc/function +++ b/etc/function @@ -7,7 +7,7 @@ autoload catch throw autoload zargs # own functions -autoload anytag chpwd dirinfo extr plonkhost put reload rtab salias +autoload anytag check_com chpwd dirinfo extr plonkhost put reload rtab salias autoload world-readable xexport xsource youtube-watch colors 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