use RPS2 to put states on the right

This commit is contained in:
Oliver Kiddle 2002-01-31 15:30:41 +00:00
parent 16f1f616f9
commit 6fd9ce2c82
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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 "$@"