mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-26 23:08:25 +00:00
macOS: fix command parsing in NewTerminalIntent
Fixes #12391, regression from #10765 Signed-off-by: Lukas <134181853+bo2themax@users.noreply.github.com>
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