blob: fe939242dea8cc8e947efaa8cd0b305433685b02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
setopt prompt_subst
autoload -Uz vcs_info
# display the name of the branch
zstyle ':vcs_info:git*' formats "[%b]"
zstyle ':vcs_info:*' enable git
precmd () { vcs_info }
PROMPT='%m%f %F{yellow}$vcs_info_msg_0_ %F{green}%~%f %F{reset}'
# For tramp (emacs).
if [ "$TERM" = "dumb" ]; then
unset PROMPT
PS1='$ '
unsetopt zle
fi
|