mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 14:01:57 +00:00
Add VCS_WORKDIR_HALF_DIRTY vrbl for unstaged files
This commit is contained in:
parent
472fb6f674
commit
3b7dfff7ea
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,9 @@ function +vi-git-untracked() {
|
||||||
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
|
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
|
||||||
-n $(git ls-files --others --exclude-standard | sed q) ]]; then
|
-n $(git ls-files --others --exclude-standard | sed q) ]]; then
|
||||||
hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f"
|
hook_com[unstaged]+=" %F{$POWERLEVEL9K_VCS_FOREGROUND}$(print_icon 'VCS_UNTRACKED_ICON')%f"
|
||||||
|
VCS_WORKDIR_HALF_DIRTY=true
|
||||||
|
else
|
||||||
|
VCS_WORKDIR_HALF_DIRTY=false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,4 +93,3 @@ function +vi-vcs-detect-changes() {
|
||||||
VCS_WORKDIR_DIRTY=false
|
VCS_WORKDIR_DIRTY=false
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue