From 2bfa4c035681a43ce2c25f77cd6125e9e4872725 Mon Sep 17 00:00:00 2001 From: Amand Tihon Date: Wed, 10 Jun 2009 14:48:57 +0200 Subject: [PATCH] Add example zshrc file. --- example/zshrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 example/zshrc 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 + -- 2.39.2