X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=1ffc6f25359ca8c54aec24cb68df0f4695f06a3b;hb=c5383b10d449697922b6da3262b63a95ed5cc83d;hp=22b1f1ad2413a699d4e5eb3e8d9f84fd6e4af8bd;hpb=6b946fefb2878781305176a307933ef2931c48ca;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 22b1f1a..1ffc6f2 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -615,13 +615,11 @@ isdarwin && xsource /sw/bin/init.sh # load our function and completion directories for fdir in /usr/share/grml/zsh/completion /usr/share/grml/zsh/functions; do fpath=( ${fdir} ${fdir}/**/*(/N) ${fpath} ) - if [[ ${fdir} == '/usr/share/grml/zsh/functions' ]] ; then - for func in ${fdir}/**/[^_]*[^~](N.) ; do - zrcautoload ${func:t} - done - fi done -unset fdir func +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'