summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
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