4a74349635cf30d305766b459c7cc3246831676e

Author
Janusz Mordarski <janusz.m@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(refined): allow selecting git branch by changing prefix to `:` (#10400)

Diff

 1diff --git a/themes/refined.zsh-theme b/themes/refined.zsh-theme
 2index 2a4188c9d9b7b52a701f86b097e26fca552516f7..5d39bd757491b232e7974cddb52c291725e6cf22 100644
 3--- a/themes/refined.zsh-theme
 4+++ b/themes/refined.zsh-theme
 5@@ -33,8 +33,8 @@ autoload -Uz vcs_info
 6 zstyle ':vcs_info:*' enable hg bzr git
 7 zstyle ':vcs_info:*:*' unstagedstr '!'
 8 zstyle ':vcs_info:*:*' stagedstr '+'
 9-zstyle ':vcs_info:*:*' formats "$FX[bold]%r$FX[no-bold]/%S" "%s/%b" "%%u%c"
10-zstyle ':vcs_info:*:*' actionformats "$FX[bold]%r$FX[no-bold]/%S" "%s/%b" "%u%c (%a)"
11+zstyle ':vcs_info:*:*' formats "$FX[bold]%r$FX[no-bold]/%S" "%s:%b" "%%u%c"
12+zstyle ':vcs_info:*:*' actionformats "$FX[bold]%r$FX[no-bold]/%S" "%s:%b" "%u%c (%a)"
13 zstyle ':vcs_info:*:*' nvcsformats "%~" "" ""
14 
15 # Fastest possible way to check if repo is dirty