Skip to content

Commit

Permalink
fix: Cloud Shell supports RGB colors
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Apr 4, 2023
1 parent 73a4046 commit 9b3e799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions termenv_unix.go
Expand Up @@ -25,6 +25,10 @@ func (o *Output) ColorProfile() Profile {
return Ascii
}

if o.environ.Getenv("GOOGLE_CLOUD_SHELL") == "true" {
return TrueColor
}

term := o.environ.Getenv("TERM")
colorTerm := o.environ.Getenv("COLORTERM")

Expand Down

0 comments on commit 9b3e799

Please sign in to comment.