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"