summaryrefslogtreecommitdiff
path: root/hooks/post-update
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/post-update')
-rw-r--r--hooks/post-update9
1 files changed, 4 insertions, 5 deletions
diff --git a/hooks/post-update b/hooks/post-update
index 56f9956..5423e06 100644
--- a/hooks/post-update
+++ b/hooks/post-update
@@ -10,14 +10,13 @@ echo -n > $PDIR/zsh/provided/env
typeset -a futurepath
for inc in $PDIR/*/provides/zsh/{functions,completions}(N); {
- inc=${inc/$HOME/\$HOME}
- futurepath+=$inc
+ futurepath+=${inc/$HOME/\$HOME}
}
if [[ -n $futurepath ]] {
- echo "fpath=($futurepath" '$fpath)' > $PDIR/zsh/provided/env
+ echo "fpath=($futurepath \$fpath)" > $PDIR/zsh/provided/env
}
-for inc in $PDIR/*/provides/zsh/functions(N); {
- echo "autoload ${inc:t}" >> $PDIR/zsh/provided/includes
+for inc in $PDIR/*/provides/zsh/functions(*N:t); {
+ echo "autoload $inc" >> $PDIR/zsh/provided/includes
}
for snippet in $PDIR/*/provides/zsh/*(.N); {