diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2015-03-30 01:49:25 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2015-03-30 01:49:25 +0300 |
commit | f2b6c8d62cd59d4f65d376030ff706871f93352f (patch) | |
tree | 61cbb87196025ce71269bc2ec80170e2d84e3201 | |
parent | a1a26b1c1065bafcdf68afc9d94d8894e9c4b315 (diff) |
Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line.
-rw-r--r-- | powerlevel9k.zsh-theme | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 870c503e..af7ecb4a 100644 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -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%}' |