Skip to content

Commit 9b3e799

Browse files
committed
fix: Cloud Shell supports RGB colors
1 parent 73a4046 commit 9b3e799

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

termenv_unix.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ func (o *Output) ColorProfile() Profile {
2525
return Ascii
2626
}
2727

28+
if o.environ.Getenv("GOOGLE_CLOUD_SHELL") == "true" {
29+
return TrueColor
30+
}
31+
2832
term := o.environ.Getenv("TERM")
2933
colorTerm := o.environ.Getenv("COLORTERM")
3034

0 commit comments

Comments
 (0)