1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-07-03 13:00:12 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Daniel Hahler
873b9f8062 Fix symlink handling, especially for symlinks not below "env_dir" 2015-01-19 19:03:26 +01:00
Daniel Hahler
986a7609ff 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.
2015-01-17 20:10:41 +01:00
Daniel Hahler
364c0fbb2a Remove underscore prefix from vars provided for .env files
Fixes https://github.com/Tarrasch/zsh-autoenv/issues/11
2014-12-02 18:49:23 +01:00
Daniel Hahler
d2f447e445 Use ${PWD:A} when checking for leave event
Use the absolute path when comparing to the absolute path of the
previously entered dirs.
2014-11-29 13:56:28 +01:00
Daniel Hahler
13c0dbcd2f Fix $PWD while sourcing .env file - should be dir of .env file 2014-11-25 14:39:43 +01:00
Daniel Hahler
bcec00d2dd Use AUTOENV prefix
- s/DOTENV_/AUTOENV_/
 - s/dotenv_/autoenv_/

Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
2014-11-24 20:13:18 +01:00
Daniel Hahler
dbfb8fe519 Streamline cwd behavior while sourcing 2014-11-24 20:13:18 +01:00
Daniel Hahler
67e8030770 tests: add and use test_autoenv_add_to_env and test_autoenv_auth_env_files
Conflicts:
	autoenv.zsh
2014-11-24 20:13:18 +01:00
Daniel Hahler
f31bb529de s/ENV_AUTHORIZATION_FILE/AUTOENV_ENV_FILENAME/
Ref: https://github.com/Tarrasch/zsh-autoenv/issues/6
2014-11-24 20:13:18 +01:00
Daniel Hahler
c1a25d724e tests: add setup script, used to be for all tests 2014-11-24 20:13:18 +01:00
Daniel Hahler
b25f6b14dc Add tests for $PWD during enter and leave events 2014-11-16 12:05:16 +01:00