mirror of
https://github.com/wez/wezterm.git
synced 2024-11-24 07:46:59 +03:00
0e9924e585
The idea is that we want to be able to spawn into wsl with the convenience of a local domain, but without the awkwardness of it having a different filesystem namespace. It would also be great to be able to spawn a new tab or pane in the same domain and pick up the cwd of the existing one. The WslDomain allows the user to explicitly list WslDomains and control eg: default shell, username and so on, but wezterm will pre-fill a default list of domains based on the `wsl -l` output that we were already using in the launcher menu. The existing LocalDomain has been augmented to understand that it may need to fixup a command invocation and that gives it the opportunity to rewrite the command so that we can launch it via `wsl.exe` and pass down the cwd and so on. This same technique might be extensible to eg: docker instances in the future. This commit: * Introduces `wsl_domains` config and its default list of wsl distributions * Creates LocalDomain instances from that list * The launcher menu allows spawning a new tab via one of those domains |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |