Skip to content
Myr

Append (not prepend) bin directory to PATH

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Junegunn Choi · committed by Junegunn Choi · parent 91876e9 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:install+1 added-1 removed
179 unmodified lines
180 cat > $src << EOF181# Setup fzf182# ---------183if [[ ! "\$PATH" =~ "$fzf_base/bin" ]]; then184 export PATH="$fzf_base/bin:\$PATH"184 export PATH="\$PATH:$fzf_base/bin"185fi186187# Man path188# --------
80 unmodified lines