summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:37:56 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-27 17:37:56 +0100
commit8c501e7629d7415ad1ecb020b99b7c8abfe84d4f (patch)
treebbcd7d1b943da9e58b244dcb593e755056238b80 /hooks
parent4cf51a231bbb478eb14f21a5023ea937b1876ab5 (diff)
post-update hook: Some style fixes
Diffstat (limited to 'hooks')
-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); {