diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-08 12:38:36 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-03-08 12:38:36 +0900 |
commit | 4f8bf2ae78545959fa77950d81f1bca88cfda239 (patch) | |
tree | 77956818b945cb4d35bb5eaeb2498cca36793934 /install | |
parent | 85c1f8a9e09348741b8a162882e5b94f7a3e830f (diff) |
[install] Avoid generating empty component in $PATH
Fix #1517
Diffstat (limited to 'install')
-rwxr-xr-x | install | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -272,7 +272,7 @@ for shell in $shells; do # Setup fzf # --------- if [[ ! "\$PATH" == *$fzf_base_esc/bin* ]]; then - export PATH="\$PATH:$fzf_base/bin" + export PATH="\${PATH:+\${PATH}:}$fzf_base/bin" fi # Auto-completion @@ -282,7 +282,6 @@ $fzf_completion # Key bindings # ------------ $fzf_key_bindings - EOF echo "OK" done |