diff options
author | Tanish Yadav <tanishyadav.jpr@gmail.com> | 2022-06-24 13:23:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 16:53:51 +0900 |
commit | 2707af403a106ddf864d9c2bae2c5e2f9b07b05f (patch) | |
tree | 2f771e7a6563e23dd09bb504e31a9aa5bb594a23 | |
parent | 2d227e5222f7f318520dc57870adca1e6fc24875 (diff) |
[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".
-rwxr-xr-x | install | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |