How to solve this problem with a 'tuned' prompt in ZSH?
Posted
by Mnementh
on Super User
See other posts from Super User
or by Mnementh
Published on 2010-03-24T13:33:23Z
Indexed on
2010/03/24
13:43 UTC
Read the original article
Hit count: 277
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.
© Super User or respective owner