From 84c547836db72156e828eeaf7af2d72859e6528e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 14 Sep 2008 21:17:11 +0200 Subject: hooks/post-update: Use relative paths --- hooks/post-update | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/post-update b/hooks/post-update index b4f977d..aec203d 100644 --- a/hooks/post-update +++ b/hooks/post-update @@ -7,6 +7,7 @@ echo -n > $PDIR/zsh/provided/env typeset -a futurepath for inc in $PDIR/*/provides/zsh/{functions,completions}(N); { + inc=${inc/$HOME/\$HOME} futurepath+=$inc } if [[ -n $futurepath ]] { @@ -17,7 +18,7 @@ for inc in $PDIR/*/provides/zsh/functions(N); { } for snippet in $PDIR/*/provides/zsh/*(.N); { - echo "source $snippet" >> $PDIR/zsh/provided/includes + echo "source ${snippet/$HOME/\$HOME}" >> $PDIR/zsh/provided/includes } cd $PDIR/zsh/etc -- cgit v1.2.3