From fa065c1040717c785476c2ea336f5f2c9bd27358 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 21 Sep 2022 15:15:36 +0800 Subject: [PATCH] Terminal: fix Alacritty detection on macOS --- src/detection/terminalShell.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/detection/terminalShell.c b/src/detection/terminalShell.c index 98766772b..fbd898f60 100644 --- a/src/detection/terminalShell.c +++ b/src/detection/terminalShell.c @@ -130,6 +130,13 @@ static void getTerminalFromEnv(FFTerminalShellResult* result) getenv("WT_PROFILE_ID") != NULL )) term = "Windows Terminal"; + //Alacritty + if(!ffStrSet(term) && ( + getenv("ALACRITTY_SOCKET") != NULL || + getenv("ALACRITTY_LOG") != NULL || + getenv("ALACRITTY_WINDOW_ID") != NULL + )) term = "Alacritty"; + //Termux if(!ffStrSet(term) && ( getenv("TERMUX_VERSION") != NULL ||