Blame view

repos/robbyrussell/oh-my-zsh/themes/sunaku.zsh-theme 794 Bytes
093a6c34b   mj   Squashed 'repos/r...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  # Git-centric variation of the "fishy" theme.
  # See screenshot at http://ompldr.org/vOHcwZg
  
  ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
  ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
  ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}-"
  ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}>"
  ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[cyan]%}#"
  ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[yellow]%}?"
  
  ZSH_THEME_GIT_PROMPT_PREFIX=""
  ZSH_THEME_GIT_PROMPT_SUFFIX=" "
  ZSH_THEME_GIT_PROMPT_DIRTY=""
  ZSH_THEME_GIT_PROMPT_CLEAN=""
  
  local user_color='green'
  test $UID -eq 0 && user_color='red'
  
  PROMPT='%(?..%{$fg_bold[red]%}exit %?
  %{$reset_color%})'\
  '%{$bold_color%}$(git_prompt_status)%{$reset_color%}'\
  '$(git_prompt_info)'\
  '%{$fg[$user_color]%}%~%{$reset_color%}'\
  '%(!.#.>) '
  
  PROMPT2='%{$fg[red]%}\ %{$reset_color%}'