From 4d9506166543fb6dba5b6ba864a05736e674e80e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 31 Jul 2022 01:27:37 -0500 Subject: [PATCH] fix: only source omz once --- .config/zsh/config/omz/init.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.config/zsh/config/omz/init.zsh b/.config/zsh/config/omz/init.zsh index bde9050..3337fc6 100644 --- a/.config/zsh/config/omz/init.zsh +++ b/.config/zsh/config/omz/init.zsh @@ -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" }