From 072204c10c8b426c9b501e99cb0b822169db31aa Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 11 Apr 2023 22:46:59 +0200 Subject: [PATCH] vim:keys: Discard stderr in FZF_CTRL_T_COMMAND The prompt gets messed up on error messages from `find` (e.g. permission errors). Discard them. --- .config/zsh/zshrc.d/60-keys.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc.d/60-keys.zsh b/.config/zsh/zshrc.d/60-keys.zsh index fce72fe..3f8e4f2 100644 --- a/.config/zsh/zshrc.d/60-keys.zsh +++ b/.config/zsh/zshrc.d/60-keys.zsh @@ -229,7 +229,7 @@ bindkey -M vicmd '^K' fzf-history-widget # \ec (Alt-C) fzf-cd-widget # ^R fzf-history-widget # TODO: ^R should insert the history line in BUFFER to differ from ctrl-up -FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND}" +FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND} 2>/dev/null" # Use the fallback default command when ripgrep is not installed but with # directories instead of files. FZF_ALT_C_COMMAND="${fzf_default_no_rg/-type f/-type d}"