mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
Add support for WezTerm
This commit is contained in:
parent
094b07b03a
commit
a8a85613fc
3 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,7 @@ namespace SourceGit.Models
|
||||||
new ShellOrTerminal("deepin-terminal", "Deepin Terminal", "deepin-terminal"),
|
new ShellOrTerminal("deepin-terminal", "Deepin Terminal", "deepin-terminal"),
|
||||||
new ShellOrTerminal("mate-terminal", "MATE Terminal", "mate-terminal"),
|
new ShellOrTerminal("mate-terminal", "MATE Terminal", "mate-terminal"),
|
||||||
new ShellOrTerminal("foot", "Foot", "foot"),
|
new ShellOrTerminal("foot", "Foot", "foot"),
|
||||||
|
new ShellOrTerminal("wezterm", "WezTerm", "wezterm"),
|
||||||
new ShellOrTerminal("custom", "Custom", ""),
|
new ShellOrTerminal("custom", "Custom", ""),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,9 @@ namespace SourceGit.Native
|
||||||
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir;
|
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir;
|
||||||
startInfo.FileName = OS.ShellOrTerminal;
|
startInfo.FileName = OS.ShellOrTerminal;
|
||||||
|
|
||||||
|
if (OS.ShellOrTerminal.EndsWith("wezterm", StringComparison.OrdinalIgnoreCase))
|
||||||
|
startInfo.Arguments = $"start --cwd \"{workdir}\"";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Process.Start(startInfo);
|
Process.Start(startInfo);
|
||||||
|
|
BIN
src/Resources/Images/ShellIcons/wezterm.png
Normal file
BIN
src/Resources/Images/ShellIcons/wezterm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3 KiB |
Loading…
Reference in a new issue