X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=dotfiles%2Fzshrc;h=336bd92ff6125c5fde856c6d26415c313fd19f50;hb=0e6e94c913296f074273df009708784934ea2bf4;hp=7da781d3e6e56c15d0e1f5ba2e95dd8c0f90fe55;hpb=1b930379b616a121714bc62fce5a202e52409ceb;p=shutils.git diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 7da781d..336bd92 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -90,8 +90,8 @@ function setprompt() { PR_BOLD="%{$terminfo[bold]%}" PR_NO_COLOUR="%{$terminfo[sgr0]%}" - zstyle ':vcs_info:*' actionformats "${PR_YELLOW}[%b|%a]${PR_NO_COLOUR} " - zstyle ':vcs_info:*' formats "${PR_YELLOW}[%b]${PR_NO_COLOUR} " + zstyle ':vcs_info:*' actionformats "${PR_YELLOW}%s:%b|%a${PR_NO_COLOUR} " + zstyle ':vcs_info:*' formats "${PR_YELLOW}%s:%b${PR_NO_COLOUR} " setopt PROMPT_SUBST PROMPT='%(!.$PR_RED.$PR_GREEN)%n@%m $PR_BLUE%1~ %# $PR_NO_COLOUR'