diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-14 21:17:11 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-14 21:17:11 +0200 |
commit | 84c547836db72156e828eeaf7af2d72859e6528e (patch) | |
tree | ae431009757d4dcaa5e879de81ecf59e4d53d6fa /hooks | |
parent | 044bbc86146b2a171c2329c5243d30fd1708ddbc (diff) |
hooks/post-update: Use relative paths
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/post-update | 3 |
1 files changed, 2 insertions, 1 deletions
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 |