diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index a7de646f2..8995d7e3e 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -25,6 +25,11 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then ZSH_CACHE_DIR="$ZSH/cache" fi +# Create the ZSH_CACHE_DIR if it doesn't exist +if [[ ! -d $ZSH_CACHE_DIR ]]; then + mkdir -p $ZSH_CACHE_DIR +fi + # Load all of the config files in ~/oh-my-zsh that end in .zsh # TIP: Add files you don't want in git to .gitignore