Remnant characters when tab completing with ZSH

后端 未结 6 463
终归单人心
终归单人心 2021-01-30 17:09

I\'m using oh-my-zsh in Arch linux with the robbyrussell theme loaded. When I try to tab complete I end up with remnant characters appended to the prompt. If I delete the auto-c

6条回答
  •  难免孤独
    2021-01-30 17:33

    I had a similar issue, with the theme tjkirch_mod though. Whenever I was working in a dirty git repo and used tab completion, the first character of the line was duplicated. Changing the character that indicates the git repo state solved the problem for me. Changed

    ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"

    to

    ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}x"

提交回复
热议问题