Remnant characters when tab completing with ZSH

Concordus Applications picture Concordus Applications · Oct 10, 2013 · Viewed 10.1k times · Source

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-completed characters, the remnant characters do not delete.

For example, if I type in:

~ /etc

then tab, it turns to

~ /e/etc/

with a list of options below. Even if I delete /etc/, the /e remains and I'm stuck with:

~ /e

I can't delete the /e. I have to execute a command to get rid of the remnant character.

Any idea what is going on here?

Answer

corbacho picture corbacho · Jan 7, 2014

It seems I had issues with locale configuration and non UTF8 configuration

In my case the fix was:

export LC_ALL="en_US.UTF-8"

and keep it permanent adding the line to .zshrc:

echo "export LC_ALL=en_US.UTF-8" >> .zshrc

More info in Ubuntu doc https://help.ubuntu.com/community/Locale