From 17ecc5f67c1995a7f2a4b177fac4268992b4b274 Mon Sep 17 00:00:00 2001 From: Frank Qing Date: Wed, 15 Jul 2026 11:58:38 +0800 Subject: [PATCH] fix(fzf): prefer bundled binary for shell integration --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index 43cfdf5..22ae415 100644 --- a/.zshrc +++ b/.zshrc @@ -223,6 +223,9 @@ source "$ZSH/oh-my-zsh.sh" # Configs that can only work after "source $ZSH/oh-my-zsh.sh", such as Aliases that depend oh-my-zsh plugins # Now source fzf.zsh , otherwise Ctr+r is overwritten by ohmyzsh +if [[ -x "$HOME/.fzf/bin/fzf" ]] && ! fzf --zsh >/dev/null 2>&1; then + path=("$HOME/.fzf/bin" ${path:#$HOME/.fzf/bin}) +fi [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh export FZF_DEFAULT_OPS="--extended"