Skip to content

Commit b4f2068

Browse files
committed
replace xterm-256color check by $terminfo[colors]
1 parent 0e53220 commit b4f2068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

promptly.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ prompt zuko
5353
autoload -Uz zuko_autoreport_setup
5454
zuko_autoreport_setup
5555

56-
[[ $TERM = "xterm-256color" ]] && zstyle ':zuko:autoreport:' text-color 239
56+
[[ $terminfo[colors] -eq 256 ]] && zstyle ':zuko:autoreport:' text-color 239

0 commit comments

Comments
 (0)