summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-26 21:22:34 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-26 21:22:34 +0200
commit2b91596b4c88345ef0639eef5b88a8dca9d514b3 (patch)
treefacdc21ed1fcd1d90aaae9895df18038625677ce /hooks
parente04baababaf7c29f62646ee86f9944a5f23dce5e (diff)
Moved ZDIR and fpath to zshenv
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-update3
1 files changed, 2 insertions, 1 deletions
diff --git a/hooks/post-update b/hooks/post-update
index fad04b1..8fb46e2 100644
--- a/hooks/post-update
+++ b/hooks/post-update
@@ -3,13 +3,14 @@ mkdir -p $HOME/var/cache/zsh
mkdir -p $PDIR/zsh/provided
rm -f $HOME/var/cache/zsh/compdump
echo -n > $PDIR/zsh/provided/includes
+echo -n > $PDIR/zsh/provided/env
typeset -a futurepath
for inc in $PDIR/*/provides/zsh/{functions,completions}(N); {
futurepath+=$inc
}
if [[ -n $futurepath ]] {
- echo "fpath=($futurepath" '$fpath)' >> $PDIR/zsh/provided/includes
+ echo "fpath=($futurepath" '$fpath)' > $PDIR/zsh/provided/env
}
for inc in $PDIR/*/provides/zsh/functions(N); {
echo "autoload ${inc:t}" >> $PDIR/zsh/provided/includes