mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
feature: add custom number of newlines after prompt
This commit is contained in:
parent
33e3010784
commit
58377b2766
1 changed files with 6 additions and 1 deletions
|
|
@ -1620,9 +1620,14 @@ $(print_icon 'MULTILINE_LAST_PROMPT_PREFIX')'
|
||||||
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
|
if [[ "$POWERLEVEL9K_DISABLE_RPROMPT" != true ]]; then
|
||||||
RPROMPT='$RPROMPT_PREFIX%f%b%k$(build_right_prompt)%{$reset_color%}$RPROMPT_SUFFIX'
|
RPROMPT='$RPROMPT_PREFIX%f%b%k$(build_right_prompt)%{$reset_color%}$RPROMPT_SUFFIX'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NEWLINE='
|
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
|
set_default POWERLEVEL9K_IGNORE_TERM_COLORS false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue