summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTanish Yadav <tanishyadav.jpr@gmail.com>2022-06-24 13:23:51 +0530
committerGitHub <noreply@github.com>2022-06-24 16:53:51 +0900
commit2707af403a106ddf864d9c2bae2c5e2f9b07b05f (patch)
tree2f771e7a6563e23dd09bb504e31a9aa5bb594a23
parent2d227e5222f7f318520dc57870adca1e6fc24875 (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-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index 4efc3705..6d39abc1 100755
--- a/install
+++ b/install
@@ -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