aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorJohnny@Ash <johnny.kwwang@gmail.com>2017-02-18 21:38:18 +0300
committerBen Hilburn <bhilburn@gmail.com>2017-02-19 06:09:52 +0300
commitceba4bb7bf559bf4d34e77cd3ab39516a8e5b3bf (patch)
treefd0f1f3fb457d841694f9db06a38b988e7111862 /powerlevel9k.zsh-theme
parent177474a489b1f87fbc7342c2679d8de8f7d00fb7 (diff)
Adding option POWERLEVEL9K_PROMPT_ADD_NEWLINE to create a blank line before each prompt
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme5
1 files changed, 4 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 6a08991d..fbdb11d6 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1267,7 +1267,7 @@ powerlevel9k_prepare_prompts() {
_P9K_TIMER_START=99999999999
if [[ "$POWERLEVEL9K_PROMPT_ON_NEWLINE" == true ]]; then
- PROMPT="\n$(print_icon 'MULTILINE_FIRST_PROMPT_PREFIX')%f%b%k$(build_left_prompt)
+ PROMPT="$(print_icon 'MULTILINE_FIRST_PROMPT_PREFIX')%f%b%k$(build_left_prompt)
$(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
if [[ "$POWERLEVEL9K_RPROMPT_ON_NEWLINE" != true ]]; then
# The right prompt should be on the same line as the first line of the left
@@ -1291,6 +1291,9 @@ $(print_icon 'MULTILINE_SECOND_PROMPT_PREFIX')"
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
RPROMPT="$RPROMPT_PREFIX%f%b%k$(build_right_prompt)%{$reset_color%}$RPROMPT_SUFFIX"
fi
+NEWLINE='
+'
+ [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]] && PROMPT="$NEWLINE$PROMPT"
}
prompt_powerlevel9k_setup() {