7478b754a1e53a6c058d7807700869474b68bb21

Author
ncanceill <nicolas.canceill@ens-cachan.org>
Committer
ncanceill <nicolas.canceill@ens-cachan.org>
Date

Message

make sure cache dir exists, just like log dir

Diff

 1diff --git a/cache/.easter-egg b/cache/.easter-egg
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..4b6164edb73afb30641afba795954a22564a299a
 4--- /dev/null
 5+++ b/cache/.easter-egg
 6@@ -0,0 +1,4 @@
 7+This file is only here so that Git will keep a cache directory as .gitignore is ignoring all the files within it.
 8+
 9+Feel free to add love notes for people here.
10+
11diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh
12index 94945bd48d0caea8fcd56ac57493cf2e66f50634..3f44b99c637d5bd25f3e7d19e73952f9c1e84551 100644
13--- a/plugins/zsh_reload/zsh_reload.plugin.zsh
14+++ b/plugins/zsh_reload/zsh_reload.plugin.zsh
15@@ -1,10 +1,11 @@
16 # reload zshrc
17 function src()
18 {
19+  local cache="$ZSH/cache"
20   autoload -U compinit zrecompile
21-  compinit -d "$ZSH/cache/zcomp-$HOST"
22+  compinit -d "$cache/zcomp-$HOST"
23 
24-  for f in ~/.zshrc "$ZSH/cache/zcomp-$HOST"; do
25+  for f in ~/.zshrc "$cache/zcomp-$HOST"; do
26     zrecompile -p $f && command rm -f $f.zwc.old
27   done
28