mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
Accidentally removed git-untracked hook.
This commit is contained in:
parent
ac048b2951
commit
84cfc66c33
1 changed files with 13 additions and 2 deletions
|
@ -60,7 +60,8 @@ case $POWERLEVEL9K_MODE in
|
|||
TEST_ICON="\uE891" #
|
||||
OK_ICON="\u2713" # ✓
|
||||
FAIL_ICON="\u2718" # ✘
|
||||
VCS_UNSTAGED_ICON="\uE16C" #
|
||||
VCS_UNTRACKED_ICON="\uE16C" #
|
||||
VCS_UNSTAGED_ICON="\uE17C" #
|
||||
VCS_STAGED_ICON="\uE168" #
|
||||
VCS_STASH_ICON="\uE133 " #
|
||||
#VCS_INCOMING_CHANGES="\uE1EB " #
|
||||
|
@ -85,6 +86,7 @@ case $POWERLEVEL9K_MODE in
|
|||
TEST_ICON=''
|
||||
OK_ICON=''
|
||||
FAIL_ICON='x'
|
||||
VCS_UNTRACKED_ICON='?'
|
||||
VCS_UNSTAGED_ICON="\u25CF" # ●
|
||||
VCS_STAGED_ICON="\u271A" # ✚
|
||||
VCS_INCOMING_CHANGES="\u2193" # ↓
|
||||
|
@ -108,7 +110,8 @@ case $POWERLEVEL9K_MODE in
|
|||
TEST_ICON="\uE891" #
|
||||
OK_ICON="\u2713" # ✓
|
||||
FAIL_ICON="\u2718" # ✘
|
||||
VCS_UNSTAGED_ICON="\uE16C" #
|
||||
VCS_UNTRACKED_ICON="\uE16C" #
|
||||
VCS_UNSTAGED_ICON="\uE17C" #
|
||||
VCS_STAGED_ICON="\uE168" #
|
||||
VCS_STASH_ICON="\uE133 " #
|
||||
#VCS_INCOMING_CHANGES="\uE1EB " #
|
||||
|
@ -134,6 +137,7 @@ case $POWERLEVEL9K_MODE in
|
|||
TEST_ICON=''
|
||||
OK_ICON="\u2713" # ✓
|
||||
FAIL_ICON="\u2718" # ✘
|
||||
VCS_UNTRACKED_ICON='?'
|
||||
VCS_UNSTAGED_ICON="\u25CF" # ●
|
||||
VCS_STAGED_ICON="\u271A" # ✚
|
||||
VCS_STASH_ICON="\u235F" # ⍟
|
||||
|
@ -275,6 +279,13 @@ prompt_vcs() {
|
|||
fi
|
||||
}
|
||||
|
||||
function +vi-git-untracked() {
|
||||
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' && \
|
||||
$(git ls-files --others --exclude-standard | sed q | wc -l | tr -d ' ') != 0 ]]; then
|
||||
hook_com[unstaged]+=" %F{$DEFAULT_COLOR}$VCS_UNTRACKED_ICON%f"
|
||||
fi
|
||||
}
|
||||
|
||||
function +vi-git-aheadbehind() {
|
||||
local ahead behind branch_name
|
||||
local -a gitstatus
|
||||
|
|
Loading…
Reference in a new issue