mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
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:
parent
291e96dcd0
commit
a12505e6e8
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue