Skip to content

Commit e011b18

Browse files
authored
Merge pull request sourcegit-scm#495 from Gama11/feature/wezterm
Add support for WezTerm
2 parents d48a271 + a8a8561 commit e011b18

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/Models/ShellOrTerminal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ static ShellOrTerminal()
5454
new ShellOrTerminal("deepin-terminal", "Deepin Terminal", "deepin-terminal"),
5555
new ShellOrTerminal("mate-terminal", "MATE Terminal", "mate-terminal"),
5656
new ShellOrTerminal("foot", "Foot", "foot"),
57+
new ShellOrTerminal("wezterm", "WezTerm", "wezterm"),
5758
new ShellOrTerminal("custom", "Custom", ""),
5859
};
5960
}

src/Native/Linux.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public void OpenTerminal(string workdir)
7171
startInfo.WorkingDirectory = string.IsNullOrEmpty(workdir) ? home : workdir;
7272
startInfo.FileName = OS.ShellOrTerminal;
7373

74+
if (OS.ShellOrTerminal.EndsWith("wezterm", StringComparison.OrdinalIgnoreCase))
75+
startInfo.Arguments = $"start --cwd \"{workdir}\"";
76+
7477
try
7578
{
7679
Process.Start(startInfo);
3 KB
Loading

0 commit comments

Comments
 (0)