Skip to content

Commit

Permalink
fix(git head): color works
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Apr 23, 2020
1 parent 9771815 commit 8ed8cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-prompt-kit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function _git_prompt_kit_update_git() {
# If HEAD is detached, show the commit.

if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then
GIT_PROMPT_KIT_HEAD="$GIT_PROMPT_KIT_SYMBOL_BRANCH$VCS_STATUS_LOCAL_BRANCH%F{$GIT_PROMPT_KIT_COLOR_INACTIVE}"
GIT_PROMPT_KIT_HEAD+="$GIT_PROMPT_KIT_SYMBOL_BRANCH$VCS_STATUS_LOCAL_BRANCH%F{$GIT_PROMPT_KIT_COLOR_INACTIVE}"

if [[ -z $VCS_STATUS_REMOTE_BRANCH ]]; then
GIT_PROMPT_KIT_UPSTREAM+="%F{$GIT_PROMPT_KIT_COLOR_REMOTE}local%F{$GIT_PROMPT_KIT_COLOR_INACTIVE}"
Expand All @@ -228,7 +228,7 @@ function _git_prompt_kit_update_git() {
fi
fi
else
GIT_PROMPT_KIT_HEAD="$GIT_PROMPT_KIT_SYMBOL_COMMIT${VCS_STATUS_COMMIT[1,8]}%F{$GIT_PROMPT_KIT_COLOR_INACTIVE}"
GIT_PROMPT_KIT_HEAD+="$GIT_PROMPT_KIT_SYMBOL_COMMIT${VCS_STATUS_COMMIT[1,8]}%F{$GIT_PROMPT_KIT_COLOR_INACTIVE}"
fi

# Git ref status: tag
Expand Down

0 comments on commit 8ed8cc7

Please sign in to comment.