mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
newline: can't work with right side
This commit is contained in:
parent
1619c74ad8
commit
161c995625
2 changed files with 5 additions and 6 deletions
|
@ -447,8 +447,9 @@ segment will not be displayed.
|
||||||
|
|
||||||
Puts a newline in your prompt so you can continue using segments on the next line.
|
Puts a newline in your prompt so you can continue using segments on the next line.
|
||||||
|
|
||||||
This allows you to use segments on both lines, unlike `POWERLEVEL9K_PROMPT_ON_NEWLINE` and
|
This allows you to use segments on both lines, unlike `POWERLEVEL9K_PROMPT_ON_NEWLINE`.
|
||||||
`POWERLEVEL9K_RPROMPT_ON_NEWLINE`.
|
|
||||||
|
This only works on the left side. On the right side it does nothing.
|
||||||
|
|
||||||
##### rbenv
|
##### rbenv
|
||||||
|
|
||||||
|
|
|
@ -339,17 +339,15 @@ prompt_background_jobs() {
|
||||||
|
|
||||||
# A newline in your prompt, so you can segments on multiple lines.
|
# A newline in your prompt, so you can segments on multiple lines.
|
||||||
prompt_newline() {
|
prompt_newline() {
|
||||||
local lws rws
|
local lws
|
||||||
|
[[ "$1" == "right" ]] && return
|
||||||
lws=$POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS
|
lws=$POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS
|
||||||
rws=$POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS
|
|
||||||
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=
|
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=
|
||||||
POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS=
|
|
||||||
"$1_prompt_segment" \
|
"$1_prompt_segment" \
|
||||||
"$0" \
|
"$0" \
|
||||||
"$2" \
|
"$2" \
|
||||||
"NONE" "NONE" $'\n'
|
"NONE" "NONE" $'\n'
|
||||||
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=$lws
|
POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS=$lws
|
||||||
POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS=$rws
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Segment that indicates usage level of current partition.
|
# Segment that indicates usage level of current partition.
|
||||||
|
|
Loading…
Reference in a new issue