]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/themes/apple.zsh-theme
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / themes / apple.zsh-theme
1 function toon {
2   echo -n ""
3 }
4
5 autoload -Uz vcs_info
6 zstyle ':vcs_info:*' check-for-changes true
7 zstyle ':vcs_info:*' unstagedstr '%F{red}*'   # display this when there are unstaged changes
8 zstyle ':vcs_info:*' stagedstr '%F{yellow}+'  # display this when there are staged changes
9 zstyle ':vcs_info:*' actionformats '%F{5}[%F{2}%b%F{3}|%F{1}%a%c%u%F{5}]%f '
10 zstyle ':vcs_info:*' formats '%F{5}[%F{2}%b%c%u%F{5}]%f '
11 zstyle ':vcs_info:svn:*' branchformat '%b'
12 zstyle ':vcs_info:svn:*' actionformats '%F{5}[%F{2}%b%F{1}:%F{3}%i%F{3}|%F{1}%a%c%u%F{5}]%f '
13 zstyle ':vcs_info:svn:*' formats '%F{5}[%F{2}%b%F{1}:%F{3}%i%c%u%F{5}]%f '
14 zstyle ':vcs_info:*' enable git cvs svn
15
16 theme_precmd () {
17   vcs_info
18 }
19
20 setopt prompt_subst
21 PROMPT='%{$fg[magenta]%}$(toon)%{$reset_color%} %~/ %{$reset_color%}${vcs_info_msg_0_}%{$reset_color%}'
22
23 autoload -U add-zsh-hook
24 add-zsh-hook precmd theme_precmd