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