From: Daniel Hahler Date: Sat, 15 Nov 2014 16:04:36 +0000 (+0100) Subject: _dotenv_source: use 'builtin cd' and stored dir instead of 'cd -' X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=71ed15679b24f74385010bd710780811deed4ab0;p=zsh-autoenv.git _dotenv_source: use 'builtin cd' and stored dir instead of 'cd -' --- diff --git a/autoenv.zsh b/autoenv.zsh index 4fcde08..a09e57b 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -87,9 +87,9 @@ _dotenv_source() { _dotenv_event=$2 _dotenv_cwd=$PWD - cd -q ${env_file:h} + builtin cd -q ${env_file:h} source $env_file - cd -q - + builtin cd -q $_dotenv_cwd unset _dotenv_event _dotenv_cwd }