From 4c13e6b718a22f94a34a8620903ddb9c6cb35f4e Mon Sep 17 00:00:00 2001 From: Jocelyn Mallon Date: Tue, 15 Jul 2014 16:16:12 -0700 Subject: [PATCH] Add option to show extended git status information. Add an option 'BULLETTRAIN_GIT_STATUS' to allow user to show extended git repo status; e.g. added, modified, deleted files instead of just clean/dirty. --- 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 d2f9f3c..8cd577c 100644 --- a/bullet-train.zsh-theme +++ b/bullet-train.zsh-theme @@ -138,7 +138,11 @@ prompt_git() { if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG - echo -n $(git_prompt_info) + if [[ $BULLETTRAIN_GIT_STATUS == true ]] then + echo -n $(git_prompt_info)$(git_prompt_status) + else + echo -n $(git_prompt_info) + fi fi }