mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Fix 'wd show' for directories within $HOME
This commit is contained in:
parent
d848c94804
commit
c5c2c97452
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ wd_show()
|
||||||
wd_matches=()
|
wd_matches=()
|
||||||
# do a reverse lookup to check whether PWD is in $points
|
# do a reverse lookup to check whether PWD is in $points
|
||||||
PWD="${PWD/$HOME/~}"
|
PWD="${PWD/$HOME/~}"
|
||||||
if [[ ${points[(r)$PWD]} == $PWD ]]
|
if [[ ${points[(r)${PWD/\~/\\~}]} == $PWD ]]
|
||||||
then
|
then
|
||||||
for name in ${(k)points}
|
for name in ${(k)points}
|
||||||
do
|
do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue