Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Fix quoting in `redhat' prompt
- X-seq: zsh-workers 30216
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: Fix quoting in `redhat' prompt
- Date: Mon, 13 Feb 2012 19:08:35 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d201107; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=cvGSODl52ZlnlOPZtaJvieY5fxmRtZLPnIOMKD8EDDw=; b=Xbk8EtXSEBUFOb6VsOy3PB3POBKqzRzaNpu2VdLT72mkNy69iTirmVpO04dppm+8RhhxsYlPRN3bBcFalzfHW7j+zwfgIfJbxMCMqgzZTzJjztxQVc5/BclPFxCJlmW5rxppyCIna6MgkE2cX7UZgih3CTPxX/r0adMXDA77swo=;
- In-reply-to: <871upyld63.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <871upyld63.fsf@ft.bewatermyfriend.org>
On 2012-02-13 at 20:57 +0100, Frank Terbeck wrote:
> Someone on IRC just noted, that when he's using the `redhat' prompt from
> zsh, that he's getting a "\$" prompt-mark instead of the "$" he was
> expecting. Turns out, that the quoting is a bit off (unless of course,
> the redhat prompt is *supposed* to look like that, which I can't quite
> believe).
The Centos prompt uses '$'/'#', per normal Bash convention. I assume
that this matches RedHat.
> + PS1='[%n@%m %1~]$ '
I suggest:
PS1='[%n@%m %1~]%(#.#.$) '
--
https://twitter.com/syscomet
Messages sorted by:
Reverse Date,
Date,
Thread,
Author