aboutsummaryrefslogtreecommitdiff
path: root/files/.zsh/zshrc
diff options
context:
space:
mode:
authorAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
committerAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
commitda709cd9e90c3ab644bb92700f0ed40d965b80d3 (patch)
tree144e5470327f72b8489141cd7595b652c6c32616 /files/.zsh/zshrc
Initial commit.
Diffstat (limited to 'files/.zsh/zshrc')
-rwxr-xr-xfiles/.zsh/zshrc19
1 files changed, 19 insertions, 0 deletions
diff --git a/files/.zsh/zshrc b/files/.zsh/zshrc
new file mode 100755
index 0000000..430d23e
--- /dev/null
+++ b/files/.zsh/zshrc
@@ -0,0 +1,19 @@
+#!/bin/zsh
+
+autoload -U compinit zrecompile
+
+zsh_cache=$HOME/.zsh/cache
+mkdir -p "$zsh_cache"
+
+compinit -d "$zsh_cache/zcomp"
+
+for zshrc_snippet in "$HOME/.zsh/rc/S"[0-9][0-9]* ; do
+ source "$zshrc_snippet"
+done
+
+local_dir=$HOME/.zsh/rc-$HOSTNAME
+if [ -d "$local_dir" ] ; then
+ for zshrc_snippet in "$local_dir/S"[0-9][0-9]* ; do
+ source "$zshrc_snippet"
+ done
+fi