mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 07:44:06 +01:00
Terminal (Windows): uses $SSH_TTY if available
This commit is contained in:
@@ -124,7 +124,7 @@ static bool getTerminalFromEnv(FFTerminalResult* result) {
|
||||
|
||||
// SSH
|
||||
if (getenv("SSH_CONNECTION") != nullptr) {
|
||||
term = "sshd"; // No SSH_TTY on Windows
|
||||
term = getenv("SSH_TTY") ?: "sshd"; // OpenSSH on Windows may not set SSH_TTY
|
||||
}
|
||||
|
||||
// Windows Terminal
|
||||
|
||||
Reference in New Issue
Block a user