From 05f78e03841a62f1458ea3e2a1da36952e055351 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Sat, 19 Sep 2015 20:58:23 -0400 Subject: [PATCH 1/2] Add a new option to keep the prompt in two lines or one --- bullet-train.zsh-theme | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 81eaa02..c670a39 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -22,6 +22,9 @@ fi if [ ! -n "${BULLETTRAIN_PROMPT_ROOT+1}" ]; then BULLETTRAIN_PROMPT_ROOT=true fi +if [ ! -n "${BULLETTRAIN_PROMPT_SEP_LINE+1}" ]; then + BULLETTRAIN_PROMPT_SEP_LINE=true +fi # STATUS if [ ! -n "${BULLETTRAIN_STATUS_SHOW+1}" ]; then @@ -449,6 +452,10 @@ build_prompt() { prompt_end } -PROMPT=' +if [[ $BULLETTRAIN_PROMPT_SEP_LINE == 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 From 8b6c42d96456d202952abc05eb29a0161f4e3d93 Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Sat, 19 Sep 2015 21:01:47 -0400 Subject: [PATCH 2/2] Update readme for BULLETTRAIN_PROMPT_SEP_LINE --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1df7fce..82cf2e1 100644 --- a/README.md +++ b/README.md @@ -106,6 +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_ROOT`|`true`|Highlight if running as root +|`BULLETTRAIN_PROMPT_SEP_LINE`|`true`|Make the prompt span across two lines ### Status