X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=1ffc6f25359ca8c54aec24cb68df0f4695f06a3b;hb=c5383b10d449697922b6da3262b63a95ed5cc83d;hp=d9e5ac8c4d7a7ba1eb28fda8342d6f529a3fa843;hpb=76bfaf89ca5c9bc830a28ee7ed5b6b3d75b595b6;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index d9e5ac8..1ffc6f2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -616,8 +616,10 @@ isdarwin && xsource /sw/bin/init.sh for fdir in /usr/share/grml/zsh/completion /usr/share/grml/zsh/functions; do fpath=( ${fdir} ${fdir}/**/*(/N) ${fpath} ) done -unset -v fdir -autoload -U /usr/share/grml/zsh/functions/**/[^_]*[^~](N.:t) +typeset -aU ffiles +ffiles=(/usr/share/grml/zsh/functions/**/[^_]*[^~](N.:t)) +(( ${#ffiles} > 0 )) && autoload -U "${ffiles[@]}" +unset -v fdir ffiles # support colors in less export LESS_TERMCAP_mb=$'\E[01;31m'