From c4bd2f36fae1b2bed5cdff6ffb8f78cb4d31a99b Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Wed, 17 Jul 2013 10:04:29 +0200 Subject: [PATCH] Updated stibbons theme with new git function: +N/-M Signed-off-by: Gaetan Semet --- themes/stibbons.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/stibbons.zsh-theme b/themes/stibbons.zsh-theme index 1ee8c5bd9..dc5ee48ff 100644 --- a/themes/stibbons.zsh-theme +++ b/themes/stibbons.zsh-theme @@ -3,11 +3,16 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}" ZSH_THEME_GIT_PROMPT_CLEAN="" + #Customized git status, oh-my-zsh currently does not allow render dirty status before branch git_custom_status() { local cb=$(current_branch) if [ -n "$cb" ]; then - echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX$(git_prompt_rebase_state)" + R="$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX$(git_prompt_rebase_state)" + if [ ! -z $(git_changes_info) ]; then + R="$R $(git_changes_info)" + fi + echo $R fi }