7d71148490511ae2ef849a9d95de07ec4a751121
- Author
- Dmitry Maksimov <dmtmax@gmail.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Diff
1diff --git a/themes/kolo.zsh-theme b/themes/kolo.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..6e04e1595aa4d0d0dfc96f1961bfb756252ed9f4
4--- /dev/null
5+++ b/themes/kolo.zsh-theme
6@@ -0,0 +1,21 @@
7+autoload -U colors && colors
8+
9+autoload -Uz vcs_info
10+
11+zstyle ':vcs_info:*' stagedstr '%F{green}●'
12+zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
13+zstyle ':vcs_info:*' check-for-changes true
14+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
15+zstyle ':vcs_info:*' enable git svn
16+precmd () {
17+ if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
18+ zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{green}]'
19+ } else {
20+ zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{red}●%F{green}]'
21+ }
22+
23+ vcs_info
24+}
25+
26+setopt prompt_subst
27+PROMPT='%B%F{magenta}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%% '