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

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".
pull/2857/head
Tanish Yadav 2 years ago committed by GitHub
parent 2d227e5222
commit 2707af403a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -256,7 +256,7 @@ for shell in $shells; do
# Setup fzf
# ---------
if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then
export PATH="\${PATH:+\${PATH}:}$fzf_base/bin"
PATH="\${PATH:+\${PATH}:}$fzf_base/bin"
fi
# Auto-completion

Loading…
Cancel
Save