From f2b6c8d62cd59d4f65d376030ff706871f93352f Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Mon, 30 Mar 2015 00:49:25 +0200 Subject: [PATCH] Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line. --- powerlevel9k.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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%}'