autoenv.zsh | 4 ++-- diff --git a/autoenv.zsh b/autoenv.zsh index 4fcde08475a05c5da4b8095f2c5ab59da9240447..a09e57b9c6ede045392019342dfdebc355e23fe2 100644 --- a/autoenv.zsh +++ b/autoenv.zsh @@ -87,9 +87,9 @@ local env_file=$1 _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 }