1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-12-22 19:00:15 +02:00

_dotenv_source: use 'builtin cd' and stored dir instead of 'cd -'

This commit is contained in:
Daniel Hahler 2014-11-15 17:04:36 +01:00
parent a37b0bc3f5
commit 71ed15679b

View File

@ -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
}