From 6588c6ce71e5be332308ae7bdfa97e8eaa081e9e Mon Sep 17 00:00:00 2001 From: Starfall Date: Mon, 8 Feb 2021 15:02:34 -0600 Subject: zsh: disable vcs_info except for git --- .config/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 8822bfc..a845f39 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -99,9 +99,9 @@ function spacetotab () { # TODO only color the last segment of the path (pwd) setopt prompt_subst autoload -Uz vcs_info +zstyle ':vcs_info:*' enable git zstyle ':vcs_info:*' actionformats '%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' zstyle ':vcs_info:*' formats '%F{5}[%F{2}%b%F{5}]%f ' -zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' precmd () { vcs_info } user="%n" -- cgit