sunaku.zsh-theme
748 bytes
1# Git-centric variation of the "fishy" theme.
2
3ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
4ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
5ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}-"
6ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}>"
7ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[cyan]%}#"
8ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%}?"
9
10ZSH_THEME_GIT_PROMPT_PREFIX=""
11ZSH_THEME_GIT_PROMPT_SUFFIX=" "
12ZSH_THEME_GIT_PROMPT_DIRTY=""
13ZSH_THEME_GIT_PROMPT_CLEAN=""
14
15local user_color='green'
16test $UID -eq 0 && user_color='red'
17
18PROMPT='%(?..%{$fg_bold[red]%}exit %?
19%{$reset_color%})'\
20'%{$bold_color%}$(git_prompt_status)%{$reset_color%}'\
21'$(git_prompt_info)'\
22'%{$fg[$user_color]%}%~%{$reset_color%}'\
23'%(!.#.>) '
24
25PROMPT2='%{$fg[red]%}\ %{$reset_color%}'