From fdaa4e9b18a761dd0c60a1d4429c9f6c3eb58c96 Mon Sep 17 00:00:00 2001
From: Junegunn Choi <junegunn.c@gmail.com>
Date: Thu, 26 Mar 2015 03:44:18 +0900
Subject: [PATCH] Append (not prepend) bin directory to PATH

Prepending can be problematic when the user install fzf using Homebrew,
execute the install script, and later upgrade fzf with Homebrew, and do
not rerun the install script. In that case, even though the homebrew
package is upgraded, the older version will still be used.
---
 install | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install b/install
index 55fb2e50..8f9d355c 100755
--- a/install
+++ b/install
@@ -181,7 +181,7 @@ for shell in bash zsh; do
 # Setup fzf
 # ---------
 if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then
-  export PATH="$fzf_base/bin:\$PATH"
+  export PATH="\$PATH:$fzf_base/bin"
 fi
 
 # Man path
-- 
GitLab