summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Maksimov <dmtmax@gmail.com>2011-02-26 10:04:45 +0300
committerRobby Russell <robby@planetargon.com>2011-04-12 10:28:13 +0200
commit7d71148490511ae2ef849a9d95de07ec4a751121 (patch)
tree78628145f7219bd80d3d0f3866fe24ce16065cb5
parentf0922006aba68e485480a81d83ba53b201270a69 (diff)
downloadzsh-7d71148490511ae2ef849a9d95de07ec4a751121.tar.gz
zsh-7d71148490511ae2ef849a9d95de07ec4a751121.tar.bz2
zsh-7d71148490511ae2ef849a9d95de07ec4a751121.zip
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%}%% '