fix: only source omz once
This commit is contained in:
parent
123d757280
commit
4d95061665
@ -35,10 +35,13 @@ configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
|
if ! [[ OMZ_INIT_RAN = true ]]; then
|
||||||
export ZSH="${HOME}/.local/share/omz"
|
local wkdir="${BASE_ZSH_CONFIG_DIR}/config/omz"
|
||||||
export ZSH_CUSTOM="${wkdir}/"
|
export ZSH="${HOME}/.local/share/omz"
|
||||||
|
export ZSH_CUSTOM="${wkdir}/"
|
||||||
|
fi
|
||||||
|
|
||||||
|
export OMZ_INIT_RAN=true
|
||||||
configure
|
configure
|
||||||
source "${ZSH}/oh-my-zsh.sh"
|
source "${ZSH}/oh-my-zsh.sh"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user