Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: bash2zshprompt converts \v and \V
- X-seq: zsh-workers 8144
- From: Adam Spiers <adam@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: PATCH: bash2zshprompt converts \v and \V
- Date: Wed, 6 Oct 1999 20:37:10 +0100
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Index: Misc/bash2zshprompt
===================================================================
RCS file: /usr/local/cvsroot/zsh/Misc/bash2zshprompt,v
retrieving revision 1.1
diff -u -r1.1 bash2zshprompt
--- Misc/bash2zshprompt 1999/10/04 18:44:42 1.1
+++ Misc/bash2zshprompt 1999/10/05 09:02:47
@@ -44,6 +44,8 @@
s/(?<!\\)\\#/%!/g; # hmmm
s/(?<!\\)\\n/\$prompt_newline/g;
s/(?<!\\)\\s/\$SHELL/g;
+ s/(?<!\\)\\v/\$ZSH_VERSION[1]/g;
+ s/(?<!\\)\\V/\${ZSH_VERSION%%-*}/g;
s/(?<!\\)\\w/%~/g;
s/(?<!\\)\\W/%1~/g;
s/(?<!\\)\\\$(?!\()/%\#/g;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author