zsh:keys:go-shcwd: Only exclude exact $PWD

Fix the grep call to only exclude lines that are exactly the PWD instead
of containing it.
This commit is contained in:
2023-02-23 14:25:33 +01:00
parent cf48efb4cb
commit a85d6c53c4

View File

@@ -203,7 +203,7 @@ ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(cmd-on-enter)
# Fuzzy PWD selector of all open shells
function go-shcwd {
dir="$(shcwd | grep -vF "$PWD" | fzf)"
dir="$(shcwd | grep -vFx "$PWD" | fzf)"
[[ -z $dir ]] || pushd -q "$dir"
redraw-prompt
}