From 8c501e7629d7415ad1ecb020b99b7c8abfe84d4f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Mar 2009 17:37:56 +0100 Subject: post-update hook: Some style fixes --- hooks/post-update | 9 ++++----- 1 file 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); { -- cgit v1.2.3