mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
TerminalShell: improve xonsh version detection
This commit is contained in:
@@ -186,7 +186,8 @@ static pid_t getTerminalInfo(FFTerminalResult* result, pid_t pid)
|
||||
ffStrEquals(name, "git-shell") ||
|
||||
ffStrEquals(name, "elvish") ||
|
||||
ffStrEquals(name, "oil.ovm") ||
|
||||
(ffStrEquals(name, "python") && getenv("XONSH_VERSION"))
|
||||
ffStrEquals(name, "xonsh") ||
|
||||
ffStrEndsWith(name, ".sh")
|
||||
)
|
||||
{
|
||||
pid = ppid;
|
||||
|
||||
Reference in New Issue
Block a user