Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Prompt for ZSH
- X-seq: zsh-users 11513
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Prompt for ZSH
- Date: Fri, 25 May 2007 14:12:36 +0100
- In-reply-to: <de52e9920705250520y61f7a140x39ce9e994cb7e6d@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <de52e9920705250520y61f7a140x39ce9e994cb7e6d@xxxxxxxxxxxxxx>
"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