1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00

wsl: default_cwd is now ~

This matches up better to most peoples expectations

refs: https://github.com/wez/wezterm/issues/2826
This commit is contained in:
Wez Furlong 2023-02-11 08:21:18 -07:00
parent 73f50efb7f
commit 797d3819b7
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
3 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,7 @@ impl WslDomain {
name: format!("WSL:{}", distro.name),
distribution: Some(distro.name.clone()),
username: None,
default_cwd: None,
default_cwd: Some("~".to_string()),
default_prog: None,
});
}

View File

@ -161,6 +161,9 @@ As features stabilize some brief notes about them will accumulate here.
regression in an earlier release changed it by accident and it's been
annoying me ever since. You are welcome to define your own [mouse
bindings](config/mouse.md) if you want to change that behavior.
* WSL Domains returned from
[wezterm.default_wsl_domains](config/lua/wezterm/default_wsl_domains.md) now
set `default_cwd="~"` [#2826](https://github.com/wez/wezterm/issues/2826)
#### Updated
* Bundled harfbuzz updated to version 6.0.0

View File

@ -53,3 +53,8 @@ return {
However, wez strongly recommends that you use `chsh` inside the WSL domain to make
that the default shell if possible, so that you can avoid this additional configuration!
*Since: nightly builds only*
The `default_cwd` field is now automatically set to `"~"` to make it more
convenient to launch a WSL instance in the home directory of the configured
distribution.