From 56f75cbda89c98a815cb180ce60f76e678496024 Mon Sep 17 00:00:00 2001 From: Jocelyn Mallon Date: Tue, 15 Jul 2014 16:24:41 -0700 Subject: [PATCH] Add an option to show extended exit code/status information. Add a user selectable option 'BULLETTRAIN_EXIT_SHOW' to show the actual exit status code ($RETVAL) along with the graphical indicator. --- bullet-train.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bullet-train.zsh-theme b/bullet-train.zsh-theme index 416bc3e..a2d3bd0 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -252,7 +252,8 @@ prompt_time() { prompt_status() { local symbols symbols=() - [[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘" + [[ $RETVAL -ne 0 && $BULLETTRAIN_EXIT_SHOW != true ]] && symbols+="%{%F{red}%}✘ " + [[ $RETVAL -ne 0 && $BULLETTRAIN_EXIT_SHOW == true ]] && symbols+="%{%F{red}%}✘ $RETVAL" [[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"