zsh: fix typo grml functions autoload
authorBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 15 Aug 2012 23:20:33 +0000 (01:20 +0200)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 15 Aug 2012 23:20:33 +0000 (01:20 +0200)
etc/zsh/zshrc

index b7cb2e5..4f0da7e 100644 (file)
@@ -555,7 +555,7 @@ 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 [[ ${fpath} == '/usr/share/grml/zsh/functions' ]] ; then
+    if [[ ${fdir} == '/usr/share/grml/zsh/functions' ]] ; then
         for func in ${fdir}/**/[^_]*[^~](N.) ; do
             zrcautoload ${func:t}
         done