Fix bash script when fzf_base contains spaces

This commit is contained in:
Junegunn Choi 2015-02-12 10:13:49 +09:00
parent 93dcd932e8
commit ff09c275d4

View File

@ -159,7 +159,7 @@ for shell in bash zsh; do
echo -n "Generate ~/.fzf.$shell ... "
src=~/.fzf.${shell}
fzf_completion="[[ \$- =~ i ]] && 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