zsh-incr是一款zsh的自动补全插件,但是这个插件有一点不好,就是当只有一个候选词的时候,会直接将这个候选词填上。( 问题见:https://xuanyu.li/2018/04/12/zsh-incr/

可以对这个插件做一点小小的修改:
vim ~/.oh-my-zsh/plugins/incr/incr.plugin.zsh

将以下代码

if [[ "$buffer_org[1,cursor_org]" == "$buffer_prd[1,cursor_org]" ]]; then
    CURSOR="$cursor_org"
    if [[ "$buffer_org" != "$buffer_prd" ]] || ((cursor_org != cursor_prd)); then
        now_predict=1
    fi
else
    BUFFER="$buffer_org"
    CURSOR="$cursor_org"
fi

修改为:

#if [[ "$buffer_org[1,cursor_org]" == "$buffer_prd[1,cursor_org]" ]]; then
#   CURSOR="$cursor_org"
#   if [[ "$buffer_org" != "$buffer_prd" ]] || ((cursor_org != cursor_prd)); then
#       now_predict=1
#   fi
#else
    BUFFER="$buffer_org"
    CURSOR="$cursor_org"
#fi

最后,更新一下环境变量

source ~/.zshrc