Fix handling of FPATH

This commit is contained in:
Peter J. Holzer 2020-03-30 16:42:05 +02:00
parent ab06f7efbe
commit cca4072c37
1 changed files with 9 additions and 0 deletions

9
.zshrc
View File

@ -121,7 +121,16 @@ fi
# don't want to recreate that mess manually.
if [ -d ~/bin/func ]
then
export FPATH
FPATH=`preppath -v FPATH ~/bin/func`
# We also have to mark all functions explicitely as undefined,
# or zsh won't look for them. (Is this new? I thought that zsh would
# automatically search for unknown commands in FPATH, too. Maybe
# there's an option for that.)
for f in ~/bin/func/*
do
typeset -fu $(basename $f)
done
fi
# for new style completion: