Skip to content

Commit

Permalink
feat(git-prompt-kit-config): include NO_COLOR status
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Jul 19, 2022
1 parent 88067d9 commit e53c86b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-prompt-kit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ git-prompt-kit-colors() {
for color in ${(o)_git_prompt_kit_colors}; do
'builtin' 'print' -P "%F{${(P)color}}● $color%f"
done

if _git_prompt_kit_no_color; then
'builtin' 'print' "NO_COLOR is set so colors are not used"
fi
}

git-prompt-kit-config() {
Expand Down

0 comments on commit e53c86b

Please sign in to comment.