aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-06-03 12:45:51 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-06-03 12:46:39 +0300
commit84cfc66c33a1e76fd8becc712a6cca8e5704d596 (patch)
treee8c181ba604a26400dcc1e9387b9843a80ed44d8 /powerlevel9k.zsh-theme
parentac048b2951b87c8b2e77db81eef5848a26d92128 (diff)
Accidentally removed git-untracked hook.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rw-r--r--powerlevel9k.zsh-theme15
1 files changed, 13 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index d79b5a00..f79155e2 100644
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -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