summaryrefslogtreecommitdiffstats
path: root/.zsh/prompt
blob: 5ee9c3f7d755dc188b2795d18bbd8a868d19f635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Load colors
autoload -U colors && colors

precmd() {
	vcs_info
}

setopt promptsubst

zstyle ':vcs_info:*' enable git svn
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:*' get-bookmarks true
zstyle ':vcs_info:git:*' formats "%{$fg[blue]%}(%{$fg[cyan]%}%s%{$fg[blue]%}:%{$fg[yellow]%}%10>>%i%<<%{$fg[blue]%}) %{$fg[red]%}%b$fg[magenta]%}%m%u%c"$'\n'
zstyle ':vcs_info:git:*' actionformats "%{$fg[blue]%}(%{$fg[cyan]%}%s%{$fg[blue]%}:%{$fg[yellow]%}%10>>%i%<<%{$fg[blue]%}) %{$fg[red]%}%b %{$fg[blue]%}[$fg[green]%}%a%{$fg[blue]%}]"$'\n'
zstyle ':vcs_info:git:*' branchformat ' GIT BRANCH: %b'

PROMPT='${vcs_info_msg_0_}%{$fg[blue]%}[%{$fg[cyan]%}%n%{$fg[blue]%}@%{$fg[magenta]%}%m%{$fg[yellow]%}:%~%{$fg[blue]%}]%{$fg[green]%}%# %{$reset_color%}'

RPROMPT='[%?%^]'