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:
parent
a37b0bc3f5
commit
71ed15679b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user