From: Amand Tihon Date: Wed, 10 Jun 2009 12:48:57 +0000 (+0200) Subject: Add example zshrc file. X-Git-Url: https://git.alrj.org/?p=zsh.d.git;a=commitdiff_plain;h=2bfa4c035681a43ce2c25f77cd6125e9e4872725 Add example zshrc file. --- diff --git a/example/zshrc b/example/zshrc new file mode 100644 index 0000000..6b1d0c3 --- /dev/null +++ b/example/zshrc @@ -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 +