Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Prompt for ZSH



"Gerolf Ziegenhain" wrote:
> But this command prompt has a problem with linebreak, as it is too long for
> one line because of the escape sequences. In bash this issue could be solved
> with something like
> 
> \[$COLOR\]
> 
> How to do this in zsh?

The equivalent is %{$COLOR%}.  See PROMPT EXPANSION in the zshmisc manual.

There are lots of examples of colours in prompts in zsh.  See the prompt
themes; these are documented in the zshcontrib manual.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview



Messages sorted by: Reverse Date, Date, Thread, Author