From da2300b6da83e6c1ba279751689ec31300a9874a Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 2 Nov 2022 15:54:13 +0100 Subject: [PATCH] Use local fzf first if available --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 4ee4ff1..bb29146 100644 --- a/zshrc +++ b/zshrc @@ -1919,8 +1919,9 @@ setopt extendedglob ## fzf if [ -d ~/.fzf ]; then +## If local fzf bin is available use it in priority if [[ ! "$PATH" == *"${HOME}"/.fzf/bin* ]]; then - export PATH="$PATH:${HOME}/.fzf/bin" + export PATH="${HOME}/.fzf/bin:${PATH}" fi if [ -f ~/bin/fd ]; then