Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh tab completion bug on ubuntu

I'm getting a really annoying bug here:

% git s<TAB> becomes

% git   sgit  s  
send-email   -- send collection of patches as emails  
send-pack     -- push objects over git protocol to another repository  
...

It just duplicates the command. If I resize the screen, it goes back to normal: git s

How do I fix this?

like image 462
BPm Avatar asked Jun 21 '12 20:06

BPm


1 Answers

I got it! Darn. It's my prompt

instead of:

PS1=$'%B%F{$fg[green]%}${PWD/#$HOME/~}%{$reset_color%}`git-prompt` ${VIMODE} '

I should just do

PS1=$'%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}`git-prompt` ${VIMODE} '

And everything works fine now...

like image 83
BPm Avatar answered Sep 22 '22 15:09

BPm