mirror of
https://github.com/Tarrasch/zsh-autoenv.git
synced 2025-12-14 10:15:12 +02:00
Use ${PWD:A} when checking for leave event
Use the absolute path when comparing to the absolute path of the previously entered dirs.
This commit is contained in:
11
tests/cwd.t
11
tests/cwd.t
@@ -24,3 +24,14 @@ The actual tests.
|
||||
|
||||
$ cd sub/sub2
|
||||
ENTERED: PWD:sub from:cwd.t to:sub2
|
||||
|
||||
Check that symlinked dirs get handled correctly.
|
||||
|
||||
$ cd ../..
|
||||
LEFT: PWD:sub from:sub2 to:cwd.t
|
||||
$ ln -s sub sub_linked
|
||||
$ cd sub_linked
|
||||
ENTERED: PWD:sub from:cwd.t to:sub_linked
|
||||
$ cd sub2
|
||||
ENTERED: PWD:sub from:sub_linked to:sub2
|
||||
$ cd .
|
||||
|
||||
Reference in New Issue
Block a user