init: define $ZSH if not defined

Closes #9223
master
Marc Cornellà 6 years ago
parent 87edf16e05
commit 28ee5846bb
  1. 3
      oh-my-zsh.sh

@ -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

Loading…
Cancel
Save