mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
41345: Use consistent prompt variables in prompt themese.
Some more sanity may be needed in this area but this apsect seems uncontroversial.
This commit is contained in:
parent
a0f33b5a6b
commit
d78761c003
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-06-26 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 41345: Functions/Prompts/prompt_walters_setup: use consistent
|
||||
versions of the prompt variables in prompt themes.
|
||||
|
||||
2017-06-22 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* Axel: 41342: conigure.ac: check for yodl version 4.
|
||||
|
|
|
@ -14,10 +14,10 @@ EOF
|
|||
prompt_walters_setup () {
|
||||
|
||||
if [[ "$TERM" != "dumb" ]]; then
|
||||
PROMPT='%B%(?..[%?] )%b%n@%U%m%u> '
|
||||
RPROMPT="%F{${1:-green}}%~%f"
|
||||
PS1='%B%(?..[%?] )%b%n@%U%m%u> '
|
||||
RPS1="%F{${1:-green}}%~%f"
|
||||
else
|
||||
PROMPT="%(?..[%?] )%n@%m:%~> "
|
||||
PS1="%(?..[%?] )%n@%m:%~> "
|
||||
fi
|
||||
|
||||
prompt_opts=(cr percent)
|
||||
|
|
Loading…
Reference in a new issue