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.
pull/158/head
Junegunn Choi 9 years ago
parent 91876e98cd
commit fdaa4e9b18

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

Loading…
Cancel
Save