@@ -11,6 +11,7 @@ public class ShellOrTerminal
1111 public string Type { get ; set ; }
1212 public string Name { get ; set ; }
1313 public string Exec { get ; set ; }
14+ public string Args { get ; set ; }
1415
1516 public Bitmap Icon
1617 {
@@ -32,18 +33,18 @@ static ShellOrTerminal()
3233 new ShellOrTerminal ( "git-bash" , "Git Bash" , "bash.exe" ) ,
3334 new ShellOrTerminal ( "pwsh" , "PowerShell" , "pwsh.exe|powershell.exe" ) ,
3435 new ShellOrTerminal ( "cmd" , "Command Prompt" , "cmd.exe" ) ,
35- new ShellOrTerminal ( "wt" , "Windows Terminal" , "wt.exe" )
36+ new ShellOrTerminal ( "wt" , "Windows Terminal" , "wt.exe" , "-d ." )
3637 } ;
3738 }
3839 else if ( OperatingSystem . IsMacOS ( ) )
3940 {
4041 Supported = new List < ShellOrTerminal > ( )
4142 {
42- new ShellOrTerminal ( "mac-terminal" , "Terminal" , "" ) ,
43- new ShellOrTerminal ( "iterm2" , "iTerm" , "" ) ,
44- new ShellOrTerminal ( "warp" , "Warp" , "" ) ,
45- new ShellOrTerminal ( "ghostty" , "Ghostty" , "" ) ,
46- new ShellOrTerminal ( "kitty" , "kitty" , "" )
43+ new ShellOrTerminal ( "mac-terminal" , "Terminal" , "Terminal " ) ,
44+ new ShellOrTerminal ( "iterm2" , "iTerm" , "iTerm " ) ,
45+ new ShellOrTerminal ( "warp" , "Warp" , "Warp " ) ,
46+ new ShellOrTerminal ( "ghostty" , "Ghostty" , "Ghostty " ) ,
47+ new ShellOrTerminal ( "kitty" , "kitty" , "kitty " )
4748 } ;
4849 }
4950 else
@@ -57,19 +58,20 @@ static ShellOrTerminal()
5758 new ShellOrTerminal ( "deepin-terminal" , "Deepin Terminal" , "deepin-terminal" ) ,
5859 new ShellOrTerminal ( "mate-terminal" , "MATE Terminal" , "mate-terminal" ) ,
5960 new ShellOrTerminal ( "foot" , "Foot" , "foot" ) ,
60- new ShellOrTerminal ( "wezterm" , "WezTerm" , "wezterm" ) ,
61- new ShellOrTerminal ( "ptyxis" , "Ptyxis" , "ptyxis" ) ,
61+ new ShellOrTerminal ( "wezterm" , "WezTerm" , "wezterm" , "start --cwd ." ) ,
62+ new ShellOrTerminal ( "ptyxis" , "Ptyxis" , "ptyxis" , "--new-window --working-directory=." ) ,
6263 new ShellOrTerminal ( "kitty" , "kitty" , "kitty" ) ,
6364 new ShellOrTerminal ( "custom" , "Custom" , "" ) ,
6465 } ;
6566 }
6667 }
6768
68- public ShellOrTerminal ( string type , string name , string exec )
69+ public ShellOrTerminal ( string type , string name , string exec , string args = null )
6970 {
7071 Type = type ;
7172 Name = name ;
7273 Exec = exec ;
74+ Args = args ;
7375 }
7476 }
7577}
0 commit comments