Add support for xonsh shell (#39834)

Closes #39506

Release Notes:

- Fixed environment variable capture when login shell is
[xonsh](https://xon.sh/)

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
This commit is contained in:
Merlin04andJakub Konka authored and GitHub committed 2025-10-09 12:00:22 +02:00
1 parent 817be8bd0e
commit 41eaf10708
4 files changed
+24 -4

No files matched your search

+2
View File
@@ -1189,6 +1189,7 @@ impl ToolchainLister for PythonToolchainProvider {
ShellKind::Nushell => "activate.nu",
ShellKind::PowerShell => "activate.ps1",
ShellKind::Cmd => "activate.bat",
ShellKind::Xonsh => "activate.xsh",
};
let path = prefix.join(BINARY_DIR).join(activate_script_name);
@@ -1215,6 +1216,7 @@ impl ToolchainLister for PythonToolchainProvider {
ShellKind::Tcsh => None,
ShellKind::Cmd => None,
ShellKind::Rc => None,
ShellKind::Xonsh => None,
})
}
_ => {}