about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Prompts/prompt_oliver_setup2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f34d38134..b17471126 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2002-01-31  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted: Functions/Prompts/prompt_oliver_setup: add example of
+	RPROMPT2 use
+
 	* Derek Peschel: 16494: Src/prompt.c: extract outermost words with
 	negative arguments to %_ prompt expansion and add %^ for a reverse
 	ordered status list
diff --git a/Functions/Prompts/prompt_oliver_setup b/Functions/Prompts/prompt_oliver_setup
index c4a28b705..a94fc07c7 100644
--- a/Functions/Prompts/prompt_oliver_setup
+++ b/Functions/Prompts/prompt_oliver_setup
@@ -36,6 +36,8 @@ prompt_oliver_setup() {
   [[ ${USER:-`whoami`} == (root|${(j(|))~normal_users}) ]] && user=""
 
   PS1="%{$pcolr%}$user$host%~%"'$((COLUMNS-12))'"(l.$prompt_newline. )[%h%1(j.%%%j.)%0(?..:%?)]%# %{$tcolr%}"
+  RPS2='<%^'
+  PS2=''
 }
 
 prompt_oliver_setup "$@"