From e36576429dbdcb447b05b999f266e1c2913b543b Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Thu, 30 Jul 2026 17:18:30 +0200 Subject: [PATCH] fix(zsh): avoid double call for 'chpwd' in alt-c fix suggested by @lucc; closes #4879 --- shell/key-bindings.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 85a3821b..21c2ea12 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -115,7 +115,7 @@ fzf-cd-widget() { # working directory. # If failed, fallback to the unexpanded path to surface the error to the user. # NOTE: Don't use the `:a` modifier as it resolves symlinks like `pwd -P`. - dir=$(builtin cd >/dev/null -- "${dir}" && echo "${PWD}" || echo "${dir}") + dir=$(builtin cd -q >/dev/null -- "${dir}" && echo "${PWD}" || echo "${dir}") zle push-line # Clear buffer. Auto-restored on next prompt. BUFFER="builtin cd -- ${(q)dir}" zle accept-line