mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 03:40:41 +01:00
prompt_char can now be any length (#162)
* prompt_char can now be any length * Update bullet-train.zsh-theme * added 's' to variable name to resolve conflict. * Update bullet-train.zsh-theme merged definition and assignment of bt_prompt_char into single line.
This commit is contained in:
committed by
Caio Gondim
parent
d3b6c499e1
commit
4ba8485131
@@ -524,12 +524,7 @@ prompt_status() {
|
||||
|
||||
# Prompt Character
|
||||
prompt_chars() {
|
||||
local bt_prompt_chars
|
||||
bt_prompt_chars=""
|
||||
|
||||
if [[ ${#BULLETTRAIN_PROMPT_CHAR} -eq 1 ]]; then
|
||||
bt_prompt_chars="${BULLETTRAIN_PROMPT_CHAR} "
|
||||
fi
|
||||
local bt_prompt_chars="${BULLETTRAIN_PROMPT_CHAR}"
|
||||
|
||||
if [[ $BULLETTRAIN_PROMPT_ROOT == true ]]; then
|
||||
bt_prompt_chars="%(!.%F{red}# .%F{green}${bt_prompt_chars}%f)"
|
||||
|
||||
Reference in New Issue
Block a user