Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix quoting in `redhat' prompt
- X-seq: zsh-workers 30214
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Fix quoting in `redhat' prompt
- Date: Mon, 13 Feb 2012 20:57:08 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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 )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author