# http://krynr.de/2009/06/04/zsh-prompt-magic/ autoload -Uz vcs_info zstyle ':vcs_info:*' enable hg bzr svn git zstyle ':vcs_info:*' check-for-changes true zstyle ':vcs_info:*' get-revision false zstyle ':vcs_info:*' formats "$FG[239]%b$FG[015]%u$FX[reset]" "$FG[239] %s$FX[reset]" # Comment, Error zstyle ':vcs_info:*' actionformats "" # (%s|%a)[%i%u %b %m]" zstyle ':vcs_info:(svn|bzr):*' branchformat "%r" zstyle ':vcs_info:(git|hg):*' branchformat "%b" zstyle ':vcs_info:*' unstagedstr "$FG[009]¹$FX[reset]" zstyle ':vcs_info:*' stagedstr "$FG[009]²$FX[reset]"