From 5a0f8a148329666c79317ef633586d2619341c0d Mon Sep 17 00:00:00 2001 From: Eric Bouchut Date: Fri, 15 Jul 2011 12:40:18 +0200 Subject: [PATCH] Updated prompt Moved status before ahead Fixed angle bracket position, now after clean_or_dirty --- themes/ebouchut.zsh-theme | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/ebouchut.zsh-theme b/themes/ebouchut.zsh-theme index 604cce12c..2bb7b3066 100644 --- a/themes/ebouchut.zsh-theme +++ b/themes/ebouchut.zsh-theme @@ -6,11 +6,11 @@ # username@hostname:current_directory% # # Right prompt when in a Git repository: -# ±‹branch_name clean_or_dirty ahead [short_sha] status› +# ±‹branch_name clean_or_dirty› status(ahead) [short_sha ] # ZSH_THEME_GIT_PROMPT_PREFIX="±‹%{$fg_bold[yellow]%}" -ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}›" # clean_or_dirty ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" @@ -25,7 +25,7 @@ ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[cyan]%}═" ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[green]%}✭" # when ahead -ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!" +ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}(!)" # short_sha ZSH_THEME_GIT_PROMPT_SHA_BEFORE="%{$reset_color%}[" @@ -38,5 +38,5 @@ local current_dir="$fg_bold[blue]%}%~%{$reset_color%}" # Left prompt: username@hostname:current_directory% PROMPT='$username@$hostname:$current_dir%# ' -# Right Prompt: ±‹branch_name clean_or_dirty ahead [short_sha]status› -RPROMPT='$(git_prompt_info)$(git_prompt_ahead) $(git_prompt_short_sha)%{$reset_color%} $(git_prompt_status)%{$reset_color%}›' +# Right prompt when in a git repo: ±‹branch_name clean_or_dirty› status(ahead) [short_sha] +RPROMPT='$(git_prompt_info) $(git_prompt_status)$(git_prompt_ahead) $(git_prompt_short_sha)'