mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Renames BULLETTRAIN_PROMPT_SEP_LINE to BULLETTRAIN_PROMPT_SEPARATE_LINE
This commit is contained in:
@@ -106,7 +106,7 @@ or don't want to see. All options must be overridden in your **.zshrc** file.
|
|||||||
|--------|-------|-------|
|
|--------|-------|-------|
|
||||||
|`BULLETTRAIN_PROMPT_CHAR`|`\$`|Character to be show before any command
|
|`BULLETTRAIN_PROMPT_CHAR`|`\$`|Character to be show before any command
|
||||||
|`BULLETTRAIN_PROMPT_ROOT`|`true`|Highlight if running as root
|
|`BULLETTRAIN_PROMPT_ROOT`|`true`|Highlight if running as root
|
||||||
|`BULLETTRAIN_PROMPT_SEP_LINE`|`true`|Make the prompt span across two lines
|
|`BULLETTRAIN_PROMPT_SEPARATE_LINE`|`true`|Make the prompt span across two lines
|
||||||
|
|
||||||
### Status
|
### Status
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ fi
|
|||||||
if [ ! -n "${BULLETTRAIN_PROMPT_ROOT+1}" ]; then
|
if [ ! -n "${BULLETTRAIN_PROMPT_ROOT+1}" ]; then
|
||||||
BULLETTRAIN_PROMPT_ROOT=true
|
BULLETTRAIN_PROMPT_ROOT=true
|
||||||
fi
|
fi
|
||||||
if [ ! -n "${BULLETTRAIN_PROMPT_SEP_LINE+1}" ]; then
|
if [ ! -n "${BULLETTRAIN_PROMPT_SEPARATE_LINE+1}" ]; then
|
||||||
BULLETTRAIN_PROMPT_SEP_LINE=true
|
BULLETTRAIN_PROMPT_SEPARATE_LINE=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# STATUS
|
# STATUS
|
||||||
@@ -455,7 +455,7 @@ build_prompt() {
|
|||||||
prompt_end
|
prompt_end
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $BULLETTRAIN_PROMPT_SEP_LINE == true ]] then
|
if [[ $BULLETTRAIN_PROMPT_SEPARATE_LINE == true ]] then
|
||||||
PROMPT='
|
PROMPT='
|
||||||
%{%f%b%k%}$(build_prompt)
|
%{%f%b%k%}$(build_prompt)
|
||||||
%{${fg_bold[default]}%}$(prompt_char) %{$reset_color%}'
|
%{${fg_bold[default]}%}$(prompt_char) %{$reset_color%}'
|
||||||
|
|||||||
Reference in New Issue
Block a user