1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2024-11-14 13:00:58 +02:00
Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Hahler
5cb689875e tests: abort if setup fails!
Otherwise the user's auth file might get removed.
2015-01-25 19:48:56 +01:00
Daniel Hahler
9c829733ad tests: setup for multiple ZDOTDIRs, fix/add "setopt clobber" 2014-12-08 22:14:54 +01:00
Daniel Hahler
e567a40592 Fixes after using setopt nounset during tests
Also add tests for unset variable with varstash.
2014-12-08 21:37:25 +01:00
Daniel Hahler
b478c5463f Call autounstash automatically/always when leaving a directory 2014-12-04 13:28:48 +01:00
Daniel Hahler
d9ff71ac1d Some more refactoring, adding support for autoenv_source_parent
- use file mtime with "entered" stack
 - fix loading of varstash; look at $functions
 - Refactor stack handling, add tests
 - Refactor `_autoenv_get_file_upwards`, add tests
 - tests: setup: reset AUTOENV_ENV_FILENAME
2014-11-24 20:13:18 +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
e088e83ff9 Cleanup 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
5b553ba1ed varstash integration
Fixes: https://github.com/Tarrasch/zsh-autoenv/issues/5
2014-11-24 20:13:18 +01:00