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

Fix handling of stack for leave, add to stack for autoenv_source_parent

This commit is contained in:
Daniel Hahler
2014-11-24 20:12:45 +01:00
parent 175a4eb628
commit 869e679b79
3 changed files with 14 additions and 4 deletions

View File

@@ -50,3 +50,9 @@ Test lookup of containing elements.
$ _autoenv_stack_entered_contains not-added
[1]
Test removing.
$ _autoenv_stack_entered_remove sub
$ echo ${_autoenv_stack_entered}
sub/sub2 non-existing sub/file

View File

@@ -98,10 +98,11 @@ Add sub/sub2/.env file.
done_sub2
Go to root.
This should not trigger the enter event, because it was handled via
autoenv_source_parent already.
$ cd ../..
LEFT_sub: PWD:sub from:sub2 to:recurse-upwards.t
ENTERED_root: PWD:recurse-upwards.t from:sub2 to:recurse-upwards.t
Changing the root .env should trigger re-authentication via autoenv_source_parent.