parent
e80a0825e0
commit
1c1e7d5ec9
4 changed files with 50 additions and 2 deletions
|
@ -7,9 +7,10 @@ setopt prompt_subst
|
|||
zstyle ':vcs_info:*' stagedstr 'M'
|
||||
zstyle ':vcs_info:*' unstagedstr '!'
|
||||
zstyle ':vcs_info:*' check-for-changes true
|
||||
zstyle ':vcs_info:git:*' formats '%F{5} %b %F{1}%c%u %f'
|
||||
zstyle ':vcs_info:jj:*' formats '%F{5}(jj) %b %F{1}%c%u %f'
|
||||
zstyle ':vcs_info:git:*' formats '%F{5}(git) %b %F{1}%c%u %f'
|
||||
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked
|
||||
zstyle ':vcs_info:*' enable git
|
||||
zstyle ':vcs_info:*' enable git jj
|
||||
+vi-git-untracked() {
|
||||
# Return early if we're not in git dir
|
||||
[ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] || return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue