[英]OSX Terminal close current tab from command line without prompt?
想要找到一種通過命令行關閉當前選項卡的方法,我將其刪除了,但最終獲得了提示您是否真的要關閉我想要避免的。 這是我的代碼,
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "w" using command down'
為什么不使用:
Terminal.app -> Preferences -> Settings -> Shell
對於項目:
"When the shell exists:" Close if the shell exited cleanly
"Prompt before closing:" Only if there are...." (or Never)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.