From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9048 invoked by alias); 14 Feb 2012 00:25:06 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30216 Received: (qmail 29535 invoked from network); 14 Feb 2012 00:25:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) 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=; Date: Mon, 13 Feb 2012 19:08:35 -0500 From: Phil Pennock To: Frank Terbeck Cc: zsh-workers@zsh.org Subject: Re: PATCH: Fix quoting in `redhat' prompt Message-ID: <20120214000834.GA85895@redoubt.spodhuis.org> Mail-Followup-To: Frank Terbeck , zsh-workers@zsh.org References: <871upyld63.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <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