summaryrefslogtreecommitdiff
path: root/themes/kolo.zsh-theme
diff options
context:
space:
mode:
authorPat Regan <thehead@patshead.com>2011-04-20 01:29:58 -0400
committerPat Regan <thehead@patshead.com>2011-04-20 01:29:58 -0400
commit655e6e8df0aaba7da9a4a35a3c2017a9050fa99d (patch)
tree0eeaba5ff7b8453a7cc94cdc0ad2d9c1b951afbf /themes/kolo.zsh-theme
parent796f5164f306da2f4e6ab7cbadc17b78f5f683af (diff)
parent971b071dc67f423d8b2a6f476e1dd58819049f41 (diff)
downloadzsh-655e6e8df0aaba7da9a4a35a3c2017a9050fa99d.tar.gz
zsh-655e6e8df0aaba7da9a4a35a3c2017a9050fa99d.tar.bz2
zsh-655e6e8df0aaba7da9a4a35a3c2017a9050fa99d.zip
Merge remote branch 'upstream/master'
Conflicts: plugins/github/github.plugin.zsh
Diffstat (limited to 'themes/kolo.zsh-theme')
-rw-r--r--themes/kolo.zsh-theme21
1 files changed, 21 insertions, 0 deletions
diff --git a/themes/kolo.zsh-theme b/themes/kolo.zsh-theme
new file mode 100644
index 000000000..6e04e1595
--- /dev/null
+++ b/themes/kolo.zsh-theme
@@ -0,0 +1,21 @@
+autoload -U colors && colors
+
+autoload -Uz vcs_info
+
+zstyle ':vcs_info:*' stagedstr '%F{green}●'
+zstyle ':vcs_info:*' unstagedstr '%F{yellow}●'
+zstyle ':vcs_info:*' check-for-changes true
+zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
+zstyle ':vcs_info:*' enable git svn
+precmd () {
+ if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
+ zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{green}]'
+ } else {
+ zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{red}●%F{green}]'
+ }
+
+ vcs_info
+}
+
+setopt prompt_subst
+PROMPT='%B%F{magenta}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%% '