Fix bug in install script

This commit is contained in:
Junegunn Choi 2014-05-04 00:49:29 +09:00
parent 20915529b7
commit 6eea9603c2

View File

@ -72,7 +72,7 @@ for shell in bash zsh; do
echo -n "Generate ~/.fzf.$shell ... "
src=~/.fzf.${shell}
fzf_completion="source $fzf_base/fzf-completion.${shell}"
fzf_completion="[[ \$- =~ i ]] && source $fzf_base/fzf-completion.${shell}"
if [ $auto_completion -ne 0 ]; then
fzf_completion="# $fzf_completion"
fi
@ -88,7 +88,7 @@ export -f fzf > /dev/null
# Auto-completion
# ---------------
[[ \$- =~ i ]] && $fzf_completion
$fzf_completion
EOF