Fix 'wd show' for directories within $HOME

This commit is contained in:
Robert Bittle 2017-08-23 11:21:45 -04:00
parent d848c94804
commit c5c2c97452
No known key found for this signature in database
GPG Key ID: 3F40BD9637DB2636

View File

@ -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