How to solve this problem with a 'tuned' prompt in ZSH?
- by Mnementh
I have an adjusted prompt in my ZSH-configuration. Main feature is, that this prompt is colored red, so that I can easily it distinguish from the outputs of programs. My prompt is defined as follows:
PROMPT=$'\e[0;31m%n@%m:%~> \e[0m'
This works mostly fine, but sometimes my cursor switches to another position on tab-completion and some characters are left behind on the screen and mangle up the commandline. That is a little annoyance, but if someone knows a solution for this, I would appreciate it.