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:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user