From cc19aaca9f423dc3316a05d2a44056375f175367 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 10 Jun 2021 07:38:28 -0700 Subject: [PATCH] revise skip_close_confirmation_for_processes_named for Windows closes: #843 --- config/src/lib.rs | 18 ++++++++++++---- docs/changelog.md | 1 + ..._close_confirmation_for_processes_named.md | 21 +++++++++++++++++++ 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/config/src/lib.rs b/config/src/lib.rs index 3272a9de4..4b33da626 100644 --- a/config/src/lib.rs +++ b/config/src/lib.rs @@ -1157,10 +1157,20 @@ pub struct Config { impl_lua_conversion!(Config); fn default_stateless_process_list() -> Vec { - ["bash", "sh", "zsh", "fish", "tmux", "nu"] - .iter() - .map(|s| s.to_string()) - .collect() + [ + "bash", + "sh", + "zsh", + "fish", + "tmux", + "nu", + "cmd.exe", + "pwsh.exe", + "powershell.exe", + ] + .iter() + .map(|s| s.to_string()) + .collect() } fn default_status_update_interval() -> u64 { diff --git a/docs/changelog.md b/docs/changelog.md index 3e0a9317b..ecb87e73d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -37,6 +37,7 @@ As features stabilize some brief notes about them will accumulate here. * New: `CTRL+SHIFT+L` is assigned to [ShowDebugOverlay](config/lua/keyassignment/ShowDebugOverlay.md) [#641](https://github.com/wez/wezterm/issues/641) * Improved: antialiasing for undercurl. Thanks to [@ModProg](https://github.com/ModProg)! [#838](https://github.com/wez/wezterm/pull/838) * Fixed: `wezterm start --cwd c:/` didn't run `default_prog`. Thanks to [@exactly-one-kas](https://github.com/exactly-one-kas)! [#851](https://github.com/wez/wezterm/pull/851) +* Improved: [skip_close_confirmation_for_processes_named](config/lua/config/skip_close_confirmation_for_processes_named.md) now includes common windows shell processes `cmd.exe`, `pwsh.exe` and `powershell.exe`. [#843](https://github.com/wez/wezterm/issues/843) ### 20210502-154244-3f7122cb diff --git a/docs/config/lua/config/skip_close_confirmation_for_processes_named.md b/docs/config/lua/config/skip_close_confirmation_for_processes_named.md index fec32e7f2..6533ba19b 100644 --- a/docs/config/lua/config/skip_close_confirmation_for_processes_named.md +++ b/docs/config/lua/config/skip_close_confirmation_for_processes_named.md @@ -23,3 +23,24 @@ return { } } ``` + +*Since: nightly builds only*: + +The default value for this setting now includes some +windows shell processes: + +``` +return { + skip_close_confirmation_for_processes_named = { + "bash", + "sh", + "zsh", + "fish", + "tmux", + "nu", + "cmd.exe", + "pwsh.exe", + "powershell.exe" + } +} +```