Add support for WezTerm

This commit is contained in:
Jens Fischer 2024-09-20 14:13:02 +02:00
parent 094b07b03a
commit a8a85613fc
3 changed files with 4 additions and 0 deletions

View file

@ -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", ""),
};
}

View file

@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 KiB