mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-23 21:30:19 +00:00
macOS: fix command parsing in NewTerminalIntent (#12392)
Fixes #12391, regression from #10765
This commit is contained in:
@@ -67,8 +67,8 @@ struct NewTerminalIntent: AppIntent {
|
||||
|
||||
// We don't run command as "command" and instead use "initialInput" so
|
||||
// that we can get all the login scripts to setup things like PATH.
|
||||
if let command {
|
||||
config.initialInput = "\(Ghostty.Shell.quote(command)); exit\n"
|
||||
if let command, !command.isEmpty {
|
||||
config.initialInput = "\(command); exit\n"
|
||||
}
|
||||
|
||||
// If we were given a working directory then open that directory
|
||||
|
||||
Reference in New Issue
Block a user