minimal.zsh-theme 904 B

123456789101112131415161718192021222324
  1. ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
  2. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  3. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$fg[white]%}]%{$reset_color%} "
  4. ZSH_THEME_GIT_PROMPT_CLEAN="]%{$reset_color%} "
  5. ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
  6. ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
  7. ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
  8. ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
  9. ZSH_THEME_HG_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
  10. ZSH_THEME_HG_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
  11. ZSH_THEME_HG_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
  12. ZSH_THEME_HG_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
  13. vcs_status() {
  14. if [[ $(whence in_svn) != "" ]] && in_svn; then
  15. svn_prompt_info
  16. elif [[ $(whence in_hg) != "" ]] && in_hg; then
  17. hg_prompt_info
  18. else
  19. git_prompt_info
  20. fi
  21. }
  22. PROMPT='%2~ $(vcs_status)»%b '