From 876fa2c44e0a17b2d10a2547ac1d13687cfed520 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 3 Jul 2007 17:06:04 +0000 Subject: unposted: force latest version of files from vendor to main branch --- Misc/bash2zshprompt | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Misc/bash2zshprompt') diff --git a/Misc/bash2zshprompt b/Misc/bash2zshprompt index aa0472ed1..7fc11434e 100644 --- a/Misc/bash2zshprompt +++ b/Misc/bash2zshprompt @@ -10,7 +10,7 @@ use strict; my @colours = qw/grey red green yellow blue magenta cyan white/; my @codes = (); -my %bold; +my %boldp; my $out = ''; print "# Converted to zsh prompt theme by bash2zshprompt, written by \n"; @@ -25,7 +25,7 @@ while (<>) { # UGH elsif (! $seen_fn_end && $seen_fn) { s/^\s*/ /; - s/^\s*}\s*$/\n precmd () { }\n preexec () { }\n}\n/ and $seen_fn_end++; + s/^\s*}\s*$/\n precmd () { setopt promptsubst }\n preexec () { }\n}\n/ and $seen_fn_end++; } s/\\\[/%{/g; @@ -44,6 +44,8 @@ while (<>) { s/(?