diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/completion | 2 | ||||
-rw-r--r-- | etc/function | 2 | ||||
-rw-r--r-- | etc/rc | 5 |
3 files changed, 4 insertions, 5 deletions
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 @@ -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 |