summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-08-17 00:07:36 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-08-17 00:07:36 +0200
commitd5eb96eb0a6122fb8553de1efc68b29047d09977 (patch)
tree438ca5b1e9bba6e31cf5d2544320af2c29158460
parentb3ac070c1454cf23c0edc3bfb36524e0326fb069 (diff)
Include config snippets from other packages
-rw-r--r--.hgignore1
-rw-r--r--etc/rc3
-rw-r--r--hooks/post-add1
-rw-r--r--hooks/post-update7
4 files changed, 12 insertions, 0 deletions
diff --git a/.hgignore b/.hgignore
new file mode 100644
index 0000000..63e9231
--- /dev/null
+++ b/.hgignore
@@ -0,0 +1 @@
+provided
diff --git a/etc/rc b/etc/rc
index 53e2514..bd73749 100644
--- a/etc/rc
+++ b/etc/rc
@@ -29,6 +29,9 @@ source $ZDIR/alias/global
source $ZDIR/alias/short
source $ZDIR/completion
+# 'outsourced' stuff
+source $ZDIR/provided/includes
+
## misc
bindkey -e
ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
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
+}