]> arthur.barton.de Git - ax-zsh.git/commitdiff
99_cleanup: Don't clean up when zprofile hasn't been read
authorAlexander Barton <alex@barton.de>
Fri, 2 Oct 2015 08:53:15 +0000 (10:53 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 2 Oct 2015 08:53:15 +0000 (10:53 +0200)
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"