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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user