diff options
author | Logan Brown <logan.brown1223@gmail.com> | 2018-02-20 03:22:14 +0300 |
---|---|---|
committer | Logan Brown <logan.brown1223@gmail.com> | 2018-02-20 03:22:14 +0300 |
commit | 58377b2766dbb5adcf26303908519530b17e622f (patch) | |
tree | 65c0dad5c14f18d247e8736beb04d72be2bed1ae /powerlevel9k.zsh-theme | |
parent | 33e301078458901f09cadf23c48ed7b3db5311ff (diff) |
feature: add custom number of newlines after prompt
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c32ccd48..32d7ed1b 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1620,9 +1620,14 @@ $(print_icon 'MULTILINE_LAST_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" + if [[ $POWERLEVEL9K_PROMPT_ADD_NEWLINE == true ]]; then + NEWLINES="" + repeat ${POWERLEVEL9K_PROMPT_ADD_NEWLINE_COUNT:-1} { NEWLINES+=$NEWLINE } + PROMPT="$NEWLINES$PROMPT" + fi } set_default POWERLEVEL9K_IGNORE_TERM_COLORS false |