]> arthur.barton.de Git - ax-zsh.git/blobdiff - ax.zsh
12_locale: Cygwin lowercases encodings as well
[ax-zsh.git] / ax.zsh
diff --git a/ax.zsh b/ax.zsh
index 951257f978810be5a823f420dc40154c0e494e60..de39ad8499b52bcd9527d489b20b436d0c9e33e2 100644 (file)
--- a/ax.zsh
+++ b/ax.zsh
@@ -69,9 +69,11 @@ function axzsh_load_plugin {
 }
 
 # Make sure that "my" (=ZSH) directory is in the search path ...
-_p="${0:h}"
-[[ "$_p" != "." ]] && PATH="${0:h}:$PATH"
-unset _p
+if [[ -z "$AXZSH" ]]; then
+       _p="${0:h}"
+       [[ "$_p" != "." ]] && PATH="$PATH:${0:h}"
+       unset _p
+fi
 
 # Make sure that "SHELL" variable is set and exported
 [[ -n "$SHELL" ]] || export SHELL=$(command -v zsh)