Add wezterm to get_terminal_provider (#3588)

https://github.com/wez/wezterm is a terminal emulator with its own built-in multiplexer
This commit is contained in:
unrelentingtech 2022-08-29 03:24:22 +03:00 committed by GitHub
parent eeb0a9f504
commit 51b62230da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,6 +211,13 @@ pub fn get_terminal_provider() -> Option<TerminalConfig> {
});
}
if env_var_is_set("WEZTERM_UNIX_SOCKET") && exists("wezterm") {
return Some(TerminalConfig {
command: "wezterm".to_string(),
args: vec!["cli".to_string(), "split-pane".to_string()],
});
}
None
}