Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Fix quoting in `redhat' prompt



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