[ltp] zsh prompt..

Vivek linux-thinkpad@linux-thinkpad.org
Fri, 26 Sep 2003 00:13:09 +0100 (BST)


On Thu, 25 Sep 2003, Peter Johanson wrote:

> here's one i write a while ago to do apm stuff... gotta port it to acpi
> now that i have that mostly working on my laptop. This shows the percent,
[snip]
> PS1="[DELETED]

I find it's usually better to assign this sort of stuff to PROMPT_COMMAND
rather than PS1, there are various bits of the shell that need to calculate
the size of the prompt and non-printing sequences sometimes confuse them.