Skip to content
This repository
Newer
Older
100644 24 lines (19 sloc) 0.719 kb
7d711484 » kolo
2011-02-26 kolo.zsh-theme
1 autoload -U colors && colors
2
3 autoload -Uz vcs_info
4
5 zstyle ':vcs_info:*' stagedstr '%F{green}โ—'
6 zstyle ':vcs_info:*' unstagedstr '%F{yellow}โ—'
7 zstyle ':vcs_info:*' check-for-changes true
8 zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
9 zstyle ':vcs_info:*' enable git svn
5277a0ff » docwhat
2011-11-15 Added add-zsh-hook support to themes
10 theme_precmd () {
7d711484 » kolo
2011-02-26 kolo.zsh-theme
11 if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
12 zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{green}]'
13 } else {
14 zstyle ':vcs_info:*' formats ' [%b%c%u%B%F{red}โ—%F{green}]'
15 }
16
17 vcs_info
18 }
19
20 setopt prompt_subst
21 PROMPT='%B%F{magenta}%c%B%F{green}${vcs_info_msg_0_}%B%F{magenta} %{$reset_color%}%% '
5277a0ff » docwhat
2011-11-15 Added add-zsh-hook support to themes
22
23 autoload -U add-zsh-hook
24 add-zsh-hook precmd theme_precmd
Something went wrong with that request. Please try again.