Ensure ZSH_CACHE_DIR exists

Create ZSH_CACHE_DIR if it doesn't exist since AFAICT oh-mh-zsh scripts
don't check it exists before using it.
This commit is contained in:
Matt Sturgeon 2017-05-05 11:28:01 +01:00
parent 291e96dcd0
commit a12505e6e8

View File

@ -25,6 +25,11 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
ZSH_CACHE_DIR="$ZSH/cache" ZSH_CACHE_DIR="$ZSH/cache"
fi 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 # 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 # TIP: Add files you don't want in git to .gitignore