minimal.zsh-theme 626 B

123456789101112131415161718
  1. ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[white]%}["
  2. ZSH_THEME_GIT_PROMPT_SUFFIX=""
  3. ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}●%{$reset_color%}]%{$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. vcs_status() {
  10. if [[ ( $(whence in_svn) != "" ) && ( $(in_svn) == 1 ) ]]; then
  11. svn_prompt_info
  12. else
  13. git_prompt_info
  14. fi
  15. }
  16. PROMPT='%2~ $(vcs_status)»%b '