1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 06:04:38 +08:00

style(core): make alternative cache directory equivalent to Arch Linux package

The oh-my-zsh-git package sets the cache directory to `$HOME/.cache/oh-my-zsh`, so
Oh My Zsh will be compatible with it.
This commit is contained in:
Marc Cornellà 2021-09-15 20:45:26 +02:00
parent 8784e88552
commit 93b557e291
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -9,7 +9,7 @@ fi
# Make sure $ZSH_CACHE_DIR is writable, otherwise use a directory in $HOME
if [[ ! -w "$ZSH_CACHE_DIR" ]]; then
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/ohmyzsh"
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh"
fi
# Create cache and completions dir and add to $fpath