mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-22 03:40:47 +02:00
use RPS2 to put states on the right
This commit is contained in:
parent
16f1f616f9
commit
6fd9ce2c82
@ -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
|
||||
|
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user