kolo.zsh-theme 653 B

123456789101112131415161718192021
  1. autoload -U colors && colors
  2. autoload -Uz vcs_info
  3. zstyle ':vcs_info:*' stagedstr '%F{green}●'
  4. zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
  5. zstyle ':vcs_info:*' check-for-changes true
  6. zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
  7. zstyle ':vcs_info:*' enable git svn
  8. precmd () {
  9. if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
  10. zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{green}]'
  11. } else {
  12. zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{red}●%F{green}]'
  13. }
  14. vcs_info
  15. }
  16. setopt prompt_subst
  17. PROMPT='%B%F{magenta}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%% '