diff --git a/macos/Sources/Features/App Intents/NewTerminalIntent.swift b/macos/Sources/Features/App Intents/NewTerminalIntent.swift index 858d5ceb0..cab7fd262 100644 --- a/macos/Sources/Features/App Intents/NewTerminalIntent.swift +++ b/macos/Sources/Features/App Intents/NewTerminalIntent.swift @@ -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