update dotfiles
[~madcoder/dotfiles.git] / zshenv
diff --git a/zshenv b/zshenv
index fc8acbc..d85db87 100644 (file)
--- a/zshenv
+++ b/zshenv
@@ -34,7 +34,7 @@ function _chose_locale() {
 
 _chose_locale
 
-if test -d ~/dev/scm/git; then
+if test -d ~/dev/scm/git -a -z "$GIT_EXEC_PATH"; then
     export GIT_EXEC_PATH=~/dev/scm/git
     export PATH=~/dev/scm/git:${PATH}
 fi