]> git.alrj.org Git - zsh.d.git/commitdiff
Add example zshrc file.
authorAmand Tihon <amand.tihon@iba-group.com>
Wed, 10 Jun 2009 12:48:57 +0000 (14:48 +0200)
committerAmand Tihon <amand.tihon@iba-group.com>
Wed, 10 Jun 2009 12:48:57 +0000 (14:48 +0200)
example/zshrc [new file with mode: 0644]

diff --git a/example/zshrc b/example/zshrc
new file mode 100644 (file)
index 0000000..6b1d0c3
--- /dev/null
@@ -0,0 +1,19 @@
+#! /usr/bin/zsh
+
+autoload -U compinit zrecompile
+
+zsh_cache=${HOME}/.zsh_cache
+mkdir -p $zsh_cache
+
+compinit -d $zsh_cache/zcomp-$HOST
+
+for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
+  zrecompile -p $f && rm -f $f.zwc.old
+done
+
+setopt extended_glob
+
+for zshrc_snipplet in ~/.zsh.d/S[0-9][0-9]*[^~]; do
+       source $zshrc_snipplet
+done
+