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

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