zsh: that is not how vcs_info works rip
This commit is contained in:
parent
cbe49f3761
commit
2abcef1ce1
|
@ -6,7 +6,8 @@ zstyle ':vcs_info:*' actionformats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{
|
||||||
zstyle ':vcs_info:*' formats '(%b) '
|
zstyle ':vcs_info:*' formats '(%b) '
|
||||||
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
|
||||||
autoload -Uz vcs_info
|
autoload -Uz vcs_info
|
||||||
precmd_functions+=vcs-info
|
precmd_functions+="vcs_info"
|
||||||
|
|
||||||
# Prompt shows hostname if connected to a remote or if root
|
# Prompt shows hostname if connected to a remote or if root
|
||||||
PROMPT="%B$([ -n "$is_remote" ] || [ "$EUID" = 0 ] && echo "%F{magenta}%m%f ")%F{$([ "$EUID" = 0 ] && echo "red" || echo "cyan")}%n%f %F{blue}%~%f%b \${vcs_info_msg_0_}%B%#%b "
|
PROMPT="%B$([ -n "$is_remote" ] || [ "$EUID" = 0 ] && echo "%F{magenta}%m%f ")%F{$([ "$EUID" = 0 ] && echo "red" || echo "cyan")}%n%f %F{blue}%~%f%b \${vcs_info_msg_0_}%B%#%b "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue