File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,16 @@ public void OpenTerminal(string workdir)
65
65
{
66
66
var home = Environment . GetFolderPath ( Environment . SpecialFolder . UserProfile ) ;
67
67
var cwd = string . IsNullOrEmpty ( workdir ) ? home : workdir ;
68
+ var terminal = OS . ShellOrTerminal ;
68
69
69
70
var startInfo = new ProcessStartInfo ( ) ;
70
71
startInfo . WorkingDirectory = cwd ;
71
- startInfo . FileName = OS . ShellOrTerminal ;
72
+ startInfo . FileName = terminal ;
72
73
73
- if ( OS . ShellOrTerminal . EndsWith ( "wezterm" , StringComparison . OrdinalIgnoreCase ) )
74
+ if ( terminal . EndsWith ( "wezterm" , StringComparison . OrdinalIgnoreCase ) )
74
75
startInfo . Arguments = $ "start --cwd \" { cwd } \" ";
76
+ else if ( terminal . EndsWith ( "ptyxis" , StringComparison . OrdinalIgnoreCase ) )
77
+ startInfo . Arguments = $ "--working-directory=\" { cwd } \" ";
75
78
76
79
try
77
80
{
You can’t perform that action at this time.
0 commit comments