mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-16 00:20:39 +01:00
Merge branch 'gregf-fix_whitespace'
* gregf-fix_whitespace: Add new BULLETTRAIN_PROMPT_ADD_NEWLINE as a option Stop printing a blank line before every prompt
This commit is contained in:
@@ -25,6 +25,9 @@ fi
|
||||
if [ ! -n "${BULLETTRAIN_PROMPT_SEPARATE_LINE+1}" ]; then
|
||||
BULLETTRAIN_PROMPT_SEPARATE_LINE=true
|
||||
fi
|
||||
if [ ! -n "${BULLETTRAIN_PROMPT_ADD_NEWLINE+1}" ]; then
|
||||
BULLETTRAIN_PROMPT_ADD_NEWLINE=true
|
||||
fi
|
||||
|
||||
# STATUS
|
||||
if [ ! -n "${BULLETTRAIN_STATUS_SHOW+1}" ]; then
|
||||
@@ -498,10 +501,15 @@ build_prompt() {
|
||||
prompt_end
|
||||
}
|
||||
|
||||
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]] then
|
||||
PROMPT='
|
||||
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]]; then
|
||||
if [[ $BULLETTRAIN_PROMPT_ADD_NEWLINE == true ]]; then
|
||||
PROMPT='
|
||||
%{%f%b%k%}$(build_prompt)
|
||||
%{${fg_bold[default]}%}$(prompt_char) %{$reset_color%}'
|
||||
else
|
||||
PROMPT='%{%f%b%k%}$(build_prompt)
|
||||
%{${fg_bold[default]}%}$(prompt_char) %{$reset_color%}'
|
||||
fi
|
||||
else
|
||||
PROMPT='%{%f%b%k%}$(build_prompt)%{${fg_bold[default]}%} $(prompt_char) %{$reset_color%}'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user