Skip to content
Myr

[shell] Don't export PATH in ~/.fzf.{bash,zsh} (#2852)

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

There is no use exporting PATH when it is already exported. Moreover, it causes things like `typeset -U path` in zsh to break if done before sourcing "~/.fzf.zsh".

authored by Tanish Yadav · committed by GitHub · parent 2d227e5 · 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
254 unmodified lines
255 cat > "$src" << EOF256# Setup fzf257# ---------258if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then259 export PATH="\${PATH:+\${PATH}:}$fzf_base/bin"259 PATH="\${PATH:+\${PATH}:}$fzf_base/bin"260fi261262# Auto-completion263# ---------------
114 unmodified lines