Skip to content

Commit 2201255

Browse files
committed
Terminal (Linux): support warp version detection
1 parent d0b03c3 commit 2201255

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/detection/terminalshell/terminalshell.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,13 @@ bool fftsGetTerminalVersion(FFstrbuf* processName, FF_MAYBE_UNUSED FFstrbuf* exe
562562
{
563563
if(ffStrbufStartsWithIgnCaseS(processName, termProgram) || // processName ends with `.exe` on Windows
564564
(ffStrEquals(termProgram, "vscode") && ffStrbufStartsWithIgnCaseS(processName, "code")) ||
565-
(ffStrEquals(termProgram, "iTerm.app") && ffStrbufStartsWithIgnCaseS(processName, "iTermServer-"))
565+
566+
#ifdef __APPLE__
567+
(ffStrEquals(termProgram, "iTerm.app") && ffStrbufStartsWithIgnCaseS(processName, "iTermServer-")) ||
568+
#elif defined(__linux__)
569+
(ffStrEquals(termProgram, "WarpTerminal") && ffStrbufEqualS(processName, "warp")) ||
570+
#endif
571+
false
566572
) {
567573
ffStrbufSetS(version, termProgramVersion);
568574
return true;

0 commit comments

Comments
 (0)