From f2b6c8d62cd59d4f65d376030ff706871f93352f Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Mon, 30 Mar 2015 00:49:25 +0200 Subject: [PATCH 1/2] 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%}' From 2cb39ad09755673430b71a889dad6f8df05b905f Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Mon, 30 Mar 2015 00:53:13 +0200 Subject: [PATCH 2/2] Added documentation. --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 52ff2af4..d82d645a 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,11 @@ elements (it is by default), and define a `DEFAULT_USER` in your `~/.zshrc`: export DEFAULT_USER= +#### Prompt on new line + +If you like, you can have your prompt on a new line by setting +`POWERLEVEL9K_PROMPT_ON_NEWLINE` to `true` in your `~/.zshrc`. + ### Bugs / Contact If you have any requests or bug reports, please use the tracker in this Github