summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-03-30 01:49:25 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-03-30 01:49:25 +0300
commitf2b6c8d62cd59d4f65d376030ff706871f93352f (patch)
tree61cbb87196025ce71269bc2ec80170e2d84e3201
parenta1a26b1c1065bafcdf68afc9d94d8894e9c4b315 (diff)
Added option POWERLEVEL9K_PROMPT_ON_NEWLINE, which shows the prompt on a new line.
-rw-r--r--powerlevel9k.zsh-theme7
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%}'