init: define $ZSH if not defined

Closes #9223
This commit is contained in:
Marc Cornellà 2020-09-04 21:50:00 +02:00
parent 87edf16e05
commit 28ee5846bb

View file

@ -1,3 +1,6 @@
# If ZSH is not defined, use the current script's directory.
[[ -z "$ZSH" ]] && export ZSH="${${(%):-%x}:a:h}"
# 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