Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bold prompt problem
- X-seq: zsh-users 11636
- From: arnuld <geek.arnuld@xxxxxxxxx>
- To: "ZSH Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: bold prompt problem
- Date: Sat, 14 Jul 2007 12:22:22 +0530
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ocy3Ze5iBBKPX+2/vBulcOKXsU8FX5jxSlhMDJA3tjdSBKK1/IQZG7jqV2COKToBQb8fRQdCZYUCA+6mCY6AIHTcp1OYReJ108TB6ENYzwiq0TpIH0PiU1YkU8qMiYao+iZ0UjvW9fF14N9zCYhj3FwyO5D38QrVDZKVpsh1ck0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j5xe4L/BOoP2dkHvAsa0jRXqT/MY7ajCa+niXTV5bWyFsWb6dWAguL0QFEfn6Rv7+nKE0Jb3KGLxB67HlVvptqbWTaXc2a9ABOPOhkguo5dD3B5rfBEWzga5fQm+9u0615CkHewrjtXq4ZbqiAcUQLAmFK/fjw220kFx/RI6H0M=
- In-reply-to: <20070714062655.GF44766@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <ecc395cb0707132304v4ea125f0hc885454d1f0fd5cd@xxxxxxxxxxxxxx> <20070714062655.GF44766@xxxxxxxxxxxxxxxx>
On 7/14/07, Dan Nelson <dnelson@xxxxxxxxxxxxxxx> wrote:
> In the last episode (Jul 14), arnuld said:
> i have setup a coloured & bold prompt:
>
> PS1="%B{%{$fg[green]%}%n@%m %{$fg[red]%}%1~ %{$reset_color%}% }%#%b"
>
> this gives me a prompt: {arnuld@arch ~ }
>
> where the whole prompt is bold except the last "}", why that closing
> "}" is not getting bold ?
$reset_color is misnamed; it expands to $color[none], where none is 0.
0 means "reset all attributes", so you lose your bold attribute.
$fg[default]$bg[default] resets just the colors.
thanks Dan, it works :)
BTW, how will one make system-wide changes to ZSH shell. by creating a
"/etc/zshrc" or "/etc/zsh/zshsrc" ?
--
http://arnuld.blogspot.com/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author