From f93a0710a40605643f8064c7a5b9ac407c2f6d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20P=C3=A9rez?= Date: Wed, 20 Dec 2017 23:51:06 +0100 Subject: [PATCH] Add space only if non-empty BULLETTRAIN_PROMPT_CHAR (#256) --- bullet-train.zsh-theme | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 45afa99..b495bd9 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -600,7 +600,11 @@ prompt_chars() { bt_prompt_chars="${bt_prompt_chars}" fi - echo -n "$bt_prompt_chars " + echo -n "$bt_prompt_chars" + + if [[ -n $BULLETTRAIN_PROMPT_CHAR ]]; then + echo -n " " + fi } # Prompt Line Separator