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:
2
install
2
install
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user