diff --git a/plugins/wd/wd.sh b/plugins/wd/wd.sh index 3d68583f1..0299eb7ab 100755 --- a/plugins/wd/wd.sh +++ b/plugins/wd/wd.sh @@ -280,7 +280,7 @@ wd_show() wd_matches=() # do a reverse lookup to check whether PWD is in $points PWD="${PWD/$HOME/~}" - if [[ ${points[(r)$PWD]} == $PWD ]] + if [[ ${points[(r)${PWD/\~/\\~}]} == $PWD ]] then for name in ${(k)points} do