sunaku.zsh-theme 748 B

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