This commit is contained in:
Monson Shao 2024-06-20 16:45:15 +00:00 committed by GitHub
commit 5090a8958f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,7 @@ unset -f omz_f
# Set ZSH_CACHE_DIR to the path where cache files should be created
# or else we will use the default cache/
if [[ -z "$ZSH_CACHE_DIR" ]]; then
ZSH_CACHE_DIR="$ZSH/cache"
ZSH_CACHE_DIR=${XDG_CACHE_HOME:-"$ZSH/cache"}
fi
# Make sure $ZSH_CACHE_DIR is writable, otherwise use a directory in $HOME