zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: bash2zshprompt converts \v and \V
@ 1999-10-06 19:37 Adam Spiers
  0 siblings, 0 replies; only message in thread
From: Adam Spiers @ 1999-10-06 19:37 UTC (permalink / raw)
  To: zsh workers mailing list

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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-10-06 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-06 19:37 PATCH: bash2zshprompt converts \v and \V Adam Spiers

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).