From 4d32b84f5cf887fafeafe7c43d23323b2f6d6488 Mon Sep 17 00:00:00 2001 From: Srijan R Shetty Date: Mon, 25 May 2015 18:37:44 +0530 Subject: [PATCH] Unset global variabels. _autoenv_source_dir & _autoenv_chpwd_prev_dir are globally set and they pollute my prompt when I cd into those directories. --- autoenv.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoenv.zsh b/autoenv.zsh index 0587e2c..1779495 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -355,3 +355,7 @@ add-zsh-hook chpwd _autoenv_chpwd_handler # Look in current directory already. _autoenv_chpwd_handler + +# Unset global varaibles +unset _autoenv_source_dir +unset _autoenv_chpwd_prev_dir