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

Fix being loaded from a function (antigen)

Fixes https://github.com/Tarrasch/zsh-autoenv/issues/14
This commit is contained in:
Daniel Hahler
2014-12-11 16:22:54 +01:00
parent 1219d83c51
commit 020a9152b7
2 changed files with 15 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
test -f "$TESTDIR/.zcompdump" && rm "$TESTDIR/.zcompdump"
AUTOENV_DEBUG=0
antigen-like-loader-function() {
source "$TESTDIR/../autoenv.plugin.zsh"
}
antigen-like-loader-function
export AUTOENV_ENV_FILENAME="$PWD/.env_auth"
echo -n > $AUTOENV_ENV_FILENAME