Fix 'wd show' for directories within $HOME
This commit is contained in:
parent
d848c94804
commit
c5c2c97452
@ -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…
Reference in New Issue
Block a user