]> Sergey Matveev's repositories - zsh-autoenv.git/commit
Do not `cd` in the `chpwd` hook
authorDaniel Hahler <git@thequod.de>
Sat, 17 Jan 2015 16:03:02 +0000 (17:03 +0100)
committerDaniel Hahler <git@thequod.de>
Sat, 17 Jan 2015 19:10:41 +0000 (20:10 +0100)
commit986a7609ff20ad7a482f744a83c2c4bdb1dcc224
treeec7222fb7296cebdb19c2b7351040c4011f85565
parent1856e8936551701f08d29e1f0184977181e73517
Do not `cd` in the `chpwd` hook

This is not really necessary, except for the convenience of being in the
.env file's directory during the hook.
But it messes around with the "cd history", e.g. `cd -`!

To reference the .env file or its directory, `$autoenv_env_file` and
`${autoenv_env_file:h}` can be used instead.
autoenv.zsh
tests/cwd.t
tests/recurse-upwards.t