From 4ba8485131200f50e0c7ee86e7b7d5d3a751d6d6 Mon Sep 17 00:00:00 2001 From: Jack Halford Date: Tue, 31 Jan 2017 14:24:39 +0100 Subject: [PATCH] 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. --- bullet-train.zsh-theme | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 7378c63..878e4cc 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -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)"