ubuntu 上的 zsh 选项卡完成错误 [英] zsh tab completion bug on ubuntu
本文介绍了ubuntu 上的 zsh 选项卡完成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这里遇到了一个非常烦人的错误:
I'm getting a really annoying bug here:
% git s
变成
% git sgit s
send-email -- send collection of patches as emails
send-pack -- push objects over git protocol to another repository
...
它只是复制命令.如果我调整屏幕大小,它会恢复正常:git s
It just duplicates the command. If I resize the screen, it goes back to normal: git s
我该如何解决这个问题?
How do I fix this?
推荐答案
我明白了!该死的.这是我的提示
I got it! Darn. It's my prompt
代替:
PS1=$'%B%F{$fg[green]%}${PWD/#$HOME/~}%{$reset_color%}`git-prompt` ${VIMODE} '代码>
我应该做的
PS1=$'%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}`git-prompt` ${VIMODE} '
现在一切正常...
这篇关于ubuntu 上的 zsh 选项卡完成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文