1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2025-12-14 10:15:12 +02:00

tests: streamline ZDOTDIR layout, AUTOENV_ENV_FILENAME via setup

Without this, a new subshell would reset the env authentication file.
This commit is contained in:
Daniel Hahler
2015-04-24 17:33:09 +02:00
parent d62fbffad3
commit fd54606830
5 changed files with 10 additions and 18 deletions

View File

@@ -1,11 +1,7 @@
test -f "$TESTDIR/.zcompdump" && rm "$TESTDIR/.zcompdump"
AUTOENV_DEBUG=0
# Source base setup.
source ${ZDOTDIR}/../ZDOTDIR/.zshenv
antigen-like-loader-function() {
source "$TESTDIR/../autoenv.plugin.zsh"
}
export AUTOENV_ENV_FILENAME="$PWD/.env_auth"
echo -n > $AUTOENV_ENV_FILENAME
TEST_SOURCE_AUTOENV=antigen-like-loader-function