zsh:keys:go-shcwd: Do not suggest $PWD

This commit is contained in:
2023-02-22 22:02:05 +01:00
parent 979d49612d
commit cf48efb4cb

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 | fzf)"
dir="$(shcwd | grep -vF "$PWD" | fzf)"
[[ -z $dir ]] || pushd -q "$dir"
redraw-prompt
}