Skip to content

Commit

Permalink
Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_F…
Browse files Browse the repository at this point in the history
…ORCE env vars
  • Loading branch information
muesli committed Feb 6, 2022
1 parent 8a90d5a commit 0ba6420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion color.go
Expand Up @@ -24,7 +24,7 @@ var (
func ColorProfile() termenv.Profile {
if !explicitColorProfile {
getColorProfile.Do(func() {
colorProfile = termenv.ColorProfile()
colorProfile = termenv.EnvColorProfile()
})
}
return colorProfile
Expand Down

0 comments on commit 0ba6420

Please sign in to comment.