summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-03-26 03:44:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-03-26 03:44:18 +0900
commitfdaa4e9b18a761dd0c60a1d4429c9f6c3eb58c96 (patch)
tree6f4090b7dcb40c093f2001f017c908a4cd1b3a5b
parent91876e98cd361c627664502f9da5e34f726d7f73 (diff)
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.
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
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