[zsh-completion] Do not overwrite $fzf_default_completion

This commit is contained in:
Junegunn Choi 2015-05-11 22:53:35 +09:00
parent 0b770cd48a
commit 2b61dc6557

View File

@ -149,7 +149,8 @@ fzf-completion() {
fi fi
} }
fzf_default_completion=$(bindkey '^I' | grep -v undefined-key | awk '{print $2}') [ -z "$fzf_default_completion" ] &&
fzf_default_completion=$(bindkey '^I' | grep -v undefined-key | awk '{print $2}')
zle -N fzf-completion zle -N fzf-completion
bindkey '^I' fzf-completion bindkey '^I' fzf-completion