Parent directory

apple.zsh-theme

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