mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 07:44:38 +00:00
Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line.
This commit is contained in:
@@ -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%}'
|
||||||
|
|||||||
Reference in New Issue
Block a user