Zsh tab completion duplicating command name

前端 未结 6 1590
梦如初夏
梦如初夏 2021-01-31 09:48

I\'m on OS X Mountain Lion, running the included ZSH shell (4.3.11) with Oh-My-ZSH installed over the top.

When using tab completion with commands such as homebrew, when

6条回答
  •  生来不讨喜
    2021-01-31 10:45

    This effect also could be reproduced if you use any of fancy UTF-8 characters like arrow, "git branch" character and so on.

    Just remove this chars from prompt and duplication will not occur.

    Also adding

    export LC_ALL=en_US.UTF-8
    export LANG=en_US.UTF-8

    to ~/.profile can help

提交回复
热议问题