add a script to query if the terminal supports kitty tgp

This commit is contained in:
2026-01-17 07:36:42 +01:00
parent 4d7b4a744d
commit 98a80c7cbc
3 changed files with 97 additions and 3 deletions
@@ -1,5 +1,11 @@
if not set -q fetch_logo_type
set -g fetch_logo_type auto
if type -q kitty-tgp-query; and kitty-tgp-query
set -g fetch_logo_type kitty
else if type -q kitty-tgp-query
set -g fetch_logo_type logo
else
set -g fetch_logo_type auto
end
end
if not set -q fetch_color