git-prompt.zsh icon indicating copy to clipboard operation
git-prompt.zsh copied to clipboard

Prompt cursor moved to the left

Open Mellbourn opened this issue 4 years ago • 2 comments

This problem is similar to https://github.com/woefe/git-prompt.zsh/issues/8

But tmux is not necessary. This happens when I SSH into a Raspberry PI.

When I let the git status show in RPROMPT, and it shows a unicode character, the prompt cursor is moved two steps to the left, so that it overlaps the left prompt.

Workaround is to replace the unicode characters with ordinary characters.

Mellbourn avatar Nov 16 '19 23:11 Mellbourn

Thanks for bringing it up! Now with the Pi we should have a more reproducible base to troubleshoot. Which versions of the OS, zsh, and git are you using on your Pi?

I set up Raspbian in VirtualBox and loaded the rprompt example, but I still cannot reproduce it :disappointed:

woefe avatar Nov 24 '19 13:11 woefe

FWIW - I just had this exact issue pop up on a fresh Arch installation. Turned out I had set my locale incorrectly and it needed to be something that was UTF-8 compliant

More info can be found here https://wiki.archlinux.org/index.php/Locale

DonnieWest avatar Mar 04 '21 22:03 DonnieWest

Closing, because I could not reproduce, and no activity on the issue since a long time.

woefe avatar Feb 24 '24 10:02 woefe