簡體   English   中英

OSX終端從命令行關閉當前選項卡沒有提示?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM