Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tiny problem with a prompt
- X-seq: zsh-users 16168
- From: Tomasz Moskal <ramshackle.industries@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: Tiny problem with a prompt
- Date: Sat, 30 Jul 2011 14:47:36 +0100
- Cc: zsh-users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:message-id :mime-version; bh=6MXuE7ZKdJXOk38u8QhoubkmeznPMjP0F5uloCAUENw=; b=AdD9eT4oo7rhzj9YOOwT4k4+3r8jWqAf3A53bH71ESGSfc91mc7EICuPVXJmPXTeDD sxXDxxKMxGTyY+HcQROq47VWGqn6yPysHy8EEqLKWCxAyTXtZ8a53nd9/CxayRUUNnbX e6goIEbujO58aFK0YI6KpYR3bG+I4zvGh5/Z0=
- In-reply-to: <CAHYJk3TUjWN3FffZ2-wVOaW24knM5ocQoHfsm6jgudrq16MPDw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <1312030627.2227.2.camel@localhost.localdomain> <CAHYJk3TUjWN3FffZ2-wVOaW24knM5ocQoHfsm6jgudrq16MPDw@mail.gmail.com>
- Reply-to: ramshackle.industries@xxxxxxxxx
On Sat, 2011-07-30 at 15:00 +0200, Mikael Magnusson wrote:
> You need to update PS1 inside precmd(), or use promptsubst and protect
> the parameter expansion.
Brilliant! Updating PS1 in precomd() did the trick. Would you mind
explaining what did you mean by "protecting the parameter expansion" as
the other solution?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author