Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 27 lines (21 sloc) 0.794 kB
c1b5d72 @sunaku add "sunaku" theme, see http://ompldr.org/vOHcwZg
sunaku authored
1 # Git-centric variation of the "fishy" theme.
2 # See screenshot at http://ompldr.org/vOHcwZg
3
4 ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
5 ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
6 ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}-"
7 ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}>"
8 ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[cyan]%}#"
9 ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%}?"
10
11 ZSH_THEME_GIT_PROMPT_PREFIX=""
12 ZSH_THEME_GIT_PROMPT_SUFFIX=" "
13 ZSH_THEME_GIT_PROMPT_DIRTY=""
14 ZSH_THEME_GIT_PROMPT_CLEAN=""
15
16 local user_color='green'
17 test $UID -eq 0 && user_color='red'
18
19 PROMPT='%(?..%{$fg_bold[red]%}exit %?
20 %{$reset_color%})'\
21 '%{$bold_color%}$(git_prompt_status)%{$reset_color%}'\
22 '$(git_prompt_info)'\
23 '%{$fg[$user_color]%}%~%{$reset_color%}'\
24 '%(!.#.>) '
25
26 PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
Something went wrong with that request. Please try again.