m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

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.
This commit is contained in:
Junegunn Choi
2015-03-26 03:44:18 +09:00
parent 91876e98cd
commit fdaa4e9b18

View File

@@ -181,7 +181,7 @@ for shell in bash zsh; do
# Setup fzf # Setup fzf
# --------- # ---------
if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then
export PATH="$fzf_base/bin:\$PATH" export PATH="\$PATH:$fzf_base/bin"
fi fi
# Man path # Man path