Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (20 sloc) 551 Bytes
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git svn
zstyle ':vcs_info:git:*' get-revision true
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' formats "(%s) %b%m %c%u"
zstyle ':vcs_info:svn:*' check-for-changes true
zstyle ':vcs_info:svn:*' formats "(%s) %b%m %c%u"
function precmd {
# make sure that all new commands are available
rehash
vcs_info
}
# Need this so the prompt will work.
setopt prompt_subst
# simple version of my ZSH prompt
RPROMPT=''
PROMPT='
%m in %/ ${vcs_info_msg_0_}
%# '
PS2=''
Something went wrong with that request. Please try again.