fix: only source omz once

This commit is contained in:
Price Hiller 2022-07-31 01:27:37 -05:00
parent 123d757280
commit 4d95061665

View File

@ -35,10 +35,13 @@ configure() {
}
init() {
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
export ZSH="${HOME}/.local/share/omz"
export ZSH_CUSTOM="${wkdir}/"
if ! [[ OMZ_INIT_RAN = true ]]; then
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
export ZSH="${HOME}/.local/share/omz"
export ZSH_CUSTOM="${wkdir}/"
fi
export OMZ_INIT_RAN=true
configure
source "${ZSH}/oh-my-zsh.sh"
}