]> Sergey Matveev's repositories - zsh-autoenv.git/commit
Change default values: .env => .autoenv.zsh etc
authorDaniel Hahler <git@thequod.de>
Thu, 21 May 2015 21:58:26 +0000 (23:58 +0200)
committerDaniel Hahler <git@thequod.de>
Fri, 22 May 2015 15:20:06 +0000 (17:20 +0200)
commite68a914487822a812a878b7aaed21785908daca6
tree69588da6b44064aa8c3660db03236a561a46ba67
parent631ea3044056ca76f72e077107779fcb5bce444e
Change default values: .env => .autoenv.zsh etc

This changes the defaults:
 - AUTOENV_FILE_ENTER:   .env       => .autoenv.zsh
 - AUTOENV_FILE_LEAVE:   .env_leave => .autoenv_leave.zsh

`.env` is usually used only for key-value pairs for environment
settings, e.g. with foreman.  We do not want to interfere with this.

This also renames the setting/variable AUTOENV_ENV_FILENAME to
AUTOENV_AUTH_FILE, and uses the [XDG
spec](http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables)
for the default location.

The new default location for the auth file will be
~/.local/share/autoenv_auth.

When the old setting is used, or the previous default exists, a warning
is given with instructions.

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/31.
Closes https://github.com/Tarrasch/zsh-autoenv/pull/32.
README.md
autoenv.zsh
tests/_autoenv_utils.t
tests/autoenv.t
tests/cwd.t
tests/leave.t
tests/recurse-upwards.t
tests/setup.zsh