From 296ff5555061b3e66889ec9e86fa3df0cdeb3326 Mon Sep 17 00:00:00 2001 From: Sebastian Staudt Date: Thu, 8 Dec 2011 21:02:58 +0100 Subject: [PATCH] Added theme "koraktor" --- themes/koraktor.zsh-theme | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 themes/koraktor.zsh-theme diff --git a/themes/koraktor.zsh-theme b/themes/koraktor.zsh-theme new file mode 100644 index 000000000..2ecad4b9f --- /dev/null +++ b/themes/koraktor.zsh-theme @@ -0,0 +1,28 @@ ++vi-git-submodule-unstaged () { + if ( cd $hook_com[base]; `git submodule status | grep -cqv "^ "` ) ; then + hook_com[unstaged]=${hook_com[unstaged]:-"%{$FG[202]%}"} + hook_com[unstaged]+='ɱ' + fi +} + ++vi-git-clean () { + if [[ -z ${hook_com[staged]} ]] && [[ -z ${hook_com[unstaged]} ]] ; then + hook_com[staged]="%{$FG[034]%}✓" + fi + hook_com[staged]=" ${hook_com[staged]}" +} + +autoload -Uz vcs_info +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:*' unstagedstr "%{$FG[202]%}✻" +zstyle ':vcs_info:*' stagedstr "%{$FG[118]%}✚" +zstyle ':vcs_info:*' actionformats "%{$FG[064]%}±%{$FG[235]%}[%{$FG[088]%}%b%{$FG[235]%}|%{$FG[033]%}%a%c%u%{$FG[235]%}] " +zstyle ':vcs_info:*' formats "%{$FG[064]%}±%{$FG[235]%}[%{$FG[088]%}%b%c%u%{$FG[235]%}] " +zstyle ':vcs_info:*' enable git +zstyle ':vcs_info:git*+set-message:*' hooks git-submodule-unstaged git-clean + +precmd () { + vcs_info +} + +PROMPT='%{$FG[088]%}◷%{$FG[006]%}%T %{$FG[024]%}%3~ $vcs_info_msg_0_%{$reset_color%}'