]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/99_cleanup/99_cleanup.zshrc
99_cleanup: Don't clean up when zprofile hasn't been read
[ax-zsh.git] / core / 99_cleanup / 99_cleanup.zshrc
index eefb842d7ebdd29e99d1d1aa3b46ca92f9aedbaf..29a765fd7f187857ffbf39f5d50fc744c3274bda 100644 (file)
@@ -2,5 +2,6 @@
 # 99_cleanup.zshrc: Don't pollute the namespace, remove variables/functions/...
 
 [[ -o login ]] && return
+[[ "$AXZSH_ZPROFILE_READ" = "2" ]] && return
 
 source "$AXZSH/core/99_cleanup/99_cleanup.zlogin"