1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line.

This commit is contained in:
Dominik Ritter 2015-03-30 00:49:25 +02:00
parent a1a26b1c10
commit f2b6c8d62c

View file

@ -304,5 +304,10 @@ precmd() {
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%}'