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
1 changed files with 1 additions and 1 deletions

View File

@ -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