diff options
Diffstat (limited to 'hooks')
-rw-r--r-- | hooks/post-add | 1 | ||||
-rw-r--r-- | hooks/post-update | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/hooks/post-add b/hooks/post-add index 1c42607..ed8c582 100644 --- a/hooks/post-add +++ b/hooks/post-add @@ -1 +1,2 @@ mkdir -p $HOME/var/cache/zsh +mkdir -p $PDIR/zsh/provided diff --git a/hooks/post-update b/hooks/post-update index a9392dd..c7a50ab 100644 --- a/hooks/post-update +++ b/hooks/post-update @@ -1,2 +1,9 @@ +# vim:ft=zsh mkdir -p $HOME/var/cache/zsh +mkdir -p $PDIR/zsh/provided rm $HOME/var/cache/zsh/compdump +echo -n > $PDIR/zsh/provided/includes + +for snippet in $PDIR/*/provides/zsh/*(.)(N); { + echo "source $snippet" >> $PDIR/zsh/provided/includes +} |