Updated prompt

Moved status before ahead

Fixed angle bracket position, now after clean_or_dirty
This commit is contained in:
Eric Bouchut 2011-07-15 12:40:18 +02:00
commit 5a0f8a1483

View file

@ -6,11 +6,11 @@
# username@hostname:current_directory% # username@hostname:current_directory%
# #
# Right prompt when in a Git repository: # 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_PREFIX="±‹%{$fg_bold[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
# clean_or_dirty # clean_or_dirty
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}" 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]%}✭" ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[green]%}✭"
# when ahead # when ahead
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}!" ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[red]%}(!)"
# short_sha # short_sha
ZSH_THEME_GIT_PROMPT_SHA_BEFORE="%{$reset_color%}[" 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% # Left prompt: username@hostname:current_directory%
PROMPT='$username@$hostname:$current_dir%# ' PROMPT='$username@$hostname:$current_dir%# '
# Right Prompt: ±branch_name clean_or_dirty ahead [short_sha]status # Right prompt when in a git repo: ±branch_name clean_or_dirty status(ahead) [short_sha]
RPROMPT='$(git_prompt_info)$(git_prompt_ahead) $(git_prompt_short_sha)%{$reset_color%} $(git_prompt_status)%{$reset_color%}' RPROMPT='$(git_prompt_info) $(git_prompt_status)$(git_prompt_ahead) $(git_prompt_short_sha)'