This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-10-12 10:32:25 +02:00
|
|
|
# Git infos on the right
|
|
|
|
autoload -Uz vcs_info
|
|
|
|
precmd_vcs_info() { vcs_info }
|
|
|
|
precmd_functions+=( precmd_vcs_info )
|
|
|
|
setopt prompt_subst
|
|
|
|
zstyle ':vcs_info:git:*' check-for-changes true
|
|
|
|
zstyle ':vcs_info:git:*' stagedstr '*'
|
|
|
|
zstyle ':vcs_info:git:*' unstagedstr '!'
|
2021-10-21 23:50:50 +02:00
|
|
|
zstyle ':vcs_info:git:*' formats '(%F{202}%b%F{007}: %c/%u%F{007}) '
|
2020-10-12 10:32:25 +02:00
|
|
|
zstyle ':vcs_info:*' enable git
|
|
|
|
|
2021-03-10 19:49:07 +01:00
|
|
|
PROMPT="[ %{$fg[cyan]%}%n\
|
|
|
|
%{$reset_color%}: \
|
|
|
|
%B%{$fg[magenta]%}%(4~|%-1~/.../%2~|%~)%} \
|
|
|
|
%{$reset_color%}] \
|
2020-10-12 10:32:25 +02:00
|
|
|
\$vcs_info_msg_0_%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})$%{$reset_color%}%b "
|