From f5b96fb39808ad07d2733c376e8f07062d0f0e76 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Fri, 4 Feb 2022 21:58:31 +0300 Subject: [PATCH] change zsh prompt git status --- subzsh/prompt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/subzsh/prompt b/subzsh/prompt index 552d7f7..f888ec3 100644 --- a/subzsh/prompt +++ b/subzsh/prompt @@ -30,8 +30,8 @@ setopt prompt_subst autoload -Uz vcs_info zstyle ':vcs_info:*' enable git cvs svn zstyle ':vcs_info:*' check-for-changes true -zstyle ':vcs_info:*' unstagedstr '!' -zstyle ':vcs_info:*' stagedstr '+' +zstyle ':vcs_info:*' unstagedstr 'M' +zstyle ':vcs_info:*' stagedstr 'A' zstyle ':vcs_info:git*+set-message:*' hooks git-untracked +vi-git-untracked(){ @@ -45,9 +45,9 @@ zstyle ':vcs_info:git*+set-message:*' hooks git-untracked precmd() { vcs_info } zstyle ':vcs_info:*' actionformats \ - '%F{5}(%f%s%F{5})%F{3}%u%c%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' + '-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]-%F{5}(%F{3}%u%c%F{5})%F{3}%f ' zstyle ':vcs_info:*' formats \ - '%F{5}(%f%s%F{5})%F{3}%u%c%F{5}[%F{2}%b%F{5}]%f ' + '%F{5}[%F{2}%b%F{5}]-%F{5}(%F{3}%u%c%F{5})%F{3}%f ' zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'