Open tekumara opened 4 years ago
Seconded. Another example is
$ cat ~/.z
/home/ganden/vc/jlab/pydux|814.861|1593380312
/home/ganden/vc|202.221|1593372880
$ z -l vc
404.442 /home/ganden/vc
3267.44 /home/ganden/vc/jlab/pydux
but I would like z vc
to take me to ~/vc
.
⁉️❓❔.… olympus?
When there's a common root, z chooses the shortest matching directory as I expect:
However, the common root logic isn't applied in the following case, which gives the surprising behaviour of choosing the more frequent directory:
I was still expecting
/Users/tekumara/code
to win, despite the addition of the vscode directory.