sunaku.zsh-theme 794 B

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