]> git.alrj.org Git - zsh.d.git/blob - example/zshrc
1e313da9959a775bfea4f187e616f9805b478f71
[zsh.d.git] / example / zshrc
1 #! /usr/bin/zsh
2
3 autoload -U zrecompile
4
5 zsh_cache=${HOME}/.zsh_cache
6 mkdir -p $zsh_cache
7
8 compinit -d $zsh_cache/zcomp-$HOST
9
10 for f in ~/.zshrc $zsh_cache/zcomp-$HOST; do
11   zrecompile -p $f && rm -f $f.zwc.old
12 done
13
14 setopt extended_glob
15
16 for zshrc_snipplet in ~/.zsh.d/S[0-9][0-9]*[^~]; do
17         source $zshrc_snipplet
18 done
19