mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-11 09:05:28 +08:00
ZSH_CACHE_DIR should respect XDG_CACHE_HOME first
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# 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
|
||||
|
||||
# Migrate .zsh-update file to $ZSH_CACHE_DIR
|
||||
|
||||
Reference in New Issue
Block a user