robbyrussell/oh-my-zsh — pull request #2749 by ncanceill (2014-04-24 22:56:35+00:00)
Title: Plugin zsh_reload: make sure cache dir exists

The [`zsh_reload`](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/zsh_reload) plugin uses the `$ZSH/cache` directory, which does not exist on a fresh OMZ install. Hence the `src` function will fail to recompile the compdump:
```
re-compiling /home/ncanceill/.oh-my-zsh/cache/zcomp-epsilon.zwc: zrecompile:zcompile:133: can't write zwc file: /home/ncanceill/.oh-my-zsh/cache/zcomp-epsilon.zwc
re-compiling /home/ncanceill/.oh-my-zsh/cache/zcomp-epsilon.zwc: failed
```

This PR adds a check for it.

@mcornella @eMxyzptlk any objections?