Fix Ghostty detection inside tmux for inline images (#299)

This commit is contained in:
Nico Bailon 2025-12-24 03:04:41 -08:00 committed by GitHub
parent 1e1a92ea47
commit e904b11e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ export function detectCapabilities(): TerminalCapabilities {
return { images: "kitty", trueColor: true, hyperlinks: true };
}
if (termProgram === "ghostty" || term.includes("ghostty")) {
if (termProgram === "ghostty" || term.includes("ghostty") || process.env.GHOSTTY_RESOURCES_DIR) {
return { images: "kitty", trueColor: true, hyperlinks: true };
}