From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9008 invoked by alias); 13 Feb 2012 19:58:02 -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: 30214 Received: (qmail 7341 invoked from network); 13 Feb 2012 19:58:00 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: zsh-workers@zsh.org Subject: PATCH: Fix quoting in `redhat' prompt User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (gnu/linux) Date: Mon, 13 Feb 2012 20:57:08 +0100 Message-ID: <871upyld63.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]MzQ5NTM4 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). Regards, Frank diff --git a/Functions/Prompts/prompt_redhat_setup b/Functions/Prompts/prompt_redhat_setup index 5bde7f9..e2b38d4 100644 --- a/Functions/Prompts/prompt_redhat_setup +++ b/Functions/Prompts/prompt_redhat_setup @@ -3,7 +3,7 @@ # Styled like the default prompt in Red Hat 5.1 # prompt_redhat_setup () { - PS1="[%n@%m %1~]\\$ " + PS1='[%n@%m %1~]$ ' PS2="> " prompt_opts=( cr percent )