summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorLangLangBart <92653266+LangLangBart@users.noreply.github.com>2024-05-14 18:59:43 +0200
committerGitHub <noreply@github.com>2024-05-15 01:59:43 +0900
commit030428ba43671cf951712de41be6d3bfb84117c3 (patch)
treed74b52189c9fca0cd997dbbbf8dbb4a327becaa2 /install
parent8a110e02b9b33e9c0f1c901d61a84d92acb7094d (diff)
downloadfzf-030428ba43671cf951712de41be6d3bfb84117c3.tar.gz
docs: update zsh integration instructions (#3794)
Diffstat (limited to 'install')
-rwxr-xr-xinstall6
1 files changed, 5 insertions, 1 deletions
diff --git a/install b/install
index cadfa6e0..6b7f5609 100755
--- a/install
+++ b/install
@@ -265,7 +265,11 @@ fi
EOF
if [[ $auto_completion -eq 1 ]] && [[ $key_bindings -eq 1 ]]; then
- echo "eval \"\$(fzf --$shell)\"" >> "$src"
+ if [[ "$shell" = zsh ]]; then
+ echo "source <(fzf --$shell)" >> "$src"
+ else
+ echo "eval \"\$(fzf --$shell)\"" >> "$src"
+ fi
else
cat >> "$src" << EOF
# Auto-completion