From c5c2c97452951c84a78d47eb2fd11455c65bc41c Mon Sep 17 00:00:00 2001 From: Robert Bittle Date: Wed, 23 Aug 2017 11:21:45 -0400 Subject: [PATCH] Fix 'wd show' for directories within $HOME --- plugins/wd/wd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wd/wd.sh b/plugins/wd/wd.sh index cf54713bd..7316af6c1 100755 --- a/plugins/wd/wd.sh +++ b/plugins/wd/wd.sh @@ -264,7 +264,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