diff --git a/src/Models/ShellOrTerminal.cs b/src/Models/ShellOrTerminal.cs index 02b294a0..8ab25788 100644 --- a/src/Models/ShellOrTerminal.cs +++ b/src/Models/ShellOrTerminal.cs @@ -54,6 +54,7 @@ namespace SourceGit.Models new ShellOrTerminal("deepin-terminal", "Deepin Terminal", "deepin-terminal"), new ShellOrTerminal("mate-terminal", "MATE Terminal", "mate-terminal"), new ShellOrTerminal("foot", "Foot", "foot"), + new ShellOrTerminal("wezterm", "WezTerm", "wezterm"), new ShellOrTerminal("custom", "Custom", ""), }; } diff --git a/src/Native/Linux.cs b/src/Native/Linux.cs index 0bc93fef..8f84a735 100644 --- a/src/Native/Linux.cs +++ b/src/Native/Linux.cs @@ -71,6 +71,9 @@ namespace SourceGit.Native startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir; startInfo.FileName = OS.ShellOrTerminal; + if (OS.ShellOrTerminal.EndsWith("wezterm", StringComparison.OrdinalIgnoreCase)) + startInfo.Arguments = $"start --cwd \"{workdir}\""; + try { Process.Start(startInfo); diff --git a/src/Resources/Images/ShellIcons/wezterm.png b/src/Resources/Images/ShellIcons/wezterm.png new file mode 100644 index 00000000..ed7a659f Binary files /dev/null and b/src/Resources/Images/ShellIcons/wezterm.png differ