mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-18 05:40:07 +00:00
Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line.
This commit is contained in:
parent
a1a26b1c10
commit
f2b6c8d62c
1 changed files with 6 additions and 1 deletions
|
@ -304,5 +304,10 @@ precmd() {
|
||||||
vcs_info_hookadd set-message vcs-detect-changes
|
vcs_info_hookadd set-message vcs-detect-changes
|
||||||
}
|
}
|
||||||
|
|
||||||
PROMPT='%{%f%b%k%}$(build_left_prompt) '
|
if [ $POWERLEVEL9K_PROMPT_ON_NEWLINE ] ; then
|
||||||
|
PROMPT='╭─%{%f%b%k%}$(build_left_prompt)
|
||||||
|
╰─ '
|
||||||
|
else
|
||||||
|
PROMPT='%{%f%b%k%}$(build_left_prompt) '
|
||||||
|
fi
|
||||||
RPROMPT='%{%f%b%k%}$(build_right_prompt)%{$reset_color%}'
|
RPROMPT='%{%f%b%k%}$(build_right_prompt)%{$reset_color%}'
|
||||||
|
|
Loading…
Reference in a new issue