TerminalShell: improve xonsh version detection

This commit is contained in:
李通洲
2024-01-17 23:45:39 +08:00
parent c749f214e0
commit 2808b1a653
2 changed files with 3 additions and 2 deletions
@@ -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;