summaryrefslogtreecommitdiff
path: root/themes/kolo.zsh-theme
diff options
context:
space:
mode:
authorFredrik Appelberg <fredrik.appelberg@gmail.com>2011-04-17 14:02:38 +0200
committerFredrik Appelberg <fredrik.appelberg@gmail.com>2011-04-17 14:02:38 +0200
commit0a896119214b5211d26be6446d5e98af7634c5ae (patch)
tree0f2ad50f646e6920e507da64c16cecc372660c32 /themes/kolo.zsh-theme
parent9092bf7b53b9e24a5283aeb6dd6950c3238e5cb8 (diff)
parent971b071dc67f423d8b2a6f476e1dd58819049f41 (diff)
downloadzsh-0a896119214b5211d26be6446d5e98af7634c5ae.tar.gz
zsh-0a896119214b5211d26be6446d5e98af7634c5ae.tar.bz2
zsh-0a896119214b5211d26be6446d5e98af7634c5ae.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Conflicts: lib/termsupport.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%}%% '