Navigation Menu

Skip to content

Commit

Permalink
make sure cache dir exists, just like log dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ncanceill committed Jul 16, 2014
1 parent 5756ea0 commit 7478b75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cache/.easter-egg
@@ -0,0 +1,4 @@
This file is only here so that Git will keep a cache directory as .gitignore is ignoring all the files within it.

Feel free to add love notes for people here.

5 changes: 3 additions & 2 deletions plugins/zsh_reload/zsh_reload.plugin.zsh
@@ -1,10 +1,11 @@
# reload zshrc
function src()
{
local cache="$ZSH/cache"
autoload -U compinit zrecompile
compinit -d "$ZSH/cache/zcomp-$HOST"
compinit -d "$cache/zcomp-$HOST"

for f in ~/.zshrc "$ZSH/cache/zcomp-$HOST"; do
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
zrecompile -p $f && command rm -f $f.zwc.old
done

Expand Down

0 comments on commit 7478b75

Please sign in to comment.