OSX终端从命令行关闭当前选项卡没有提示?

时间:2014-09-08 22:26:38

标签: macos tabs terminal

正在寻找一种通过命令行关闭当前选项卡的方法,我将其删除了,但最终得到的提示你真的要关闭我想避免。这是我的代码,

osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "w" using command down'

1 个答案:

答案 0 :(得分:5)

为什么没有使用:

Terminal.app -> Preferences -> Settings -> Shell

和项目:

"When the shell exists:" Close if the shell exited cleanly
"Prompt before closing:" Only if there are...." (or Never)
相关问题