Daniel Hahler
9a010cbdf6
Do not reset the stack variables when (re)sourcing the plugin
...
This is meant to keep the current state when re-sourcing the shell
config (`. ~/.zshrc`).
Closes https://github.com/Tarrasch/zsh-autoenv/pull/24
2015-03-30 00:58:32 +02:00
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
5e18125f04
Improve interactive prompt
...
- Revert usage of "read -q" for authentication (#10 )
- Change format of "not authenticated" message (#9 )
2014-11-27 13:33:04 +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
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
4676713bc6
Various improvements
...
- Support for leave event, via DOTENV_FILE_LEAVE and _dotenv_event (can
use DOTENV_FILE_LEAVE=$DOTENV_FILE_ENTER).
- Support for searching upwards for $DOTENV_FILE_ENTER (#3 ).
- Source .env only once per session, but re-source when leave events
are enabled (#1 ).
- Trigger the machinery when the script gets sourced, for the current
dir (#2 ).
2014-11-15 15:08:52 +01:00
Arash Rouhani
cae790171d
Forgot trailing white space
2013-09-08 18:54:17 +02:00
Arash Rouhani
08fec15f31
Add tests
2013-09-08 18:32:16 +02:00