OSX - How to auto Close Terminal window after the “exit” command executed.

前端 未结 14 1217
孤独总比滥情好
孤独总比滥情好 2020-12-12 16:02

When I\'m done with Terminal, I want to exit it. Right now, I have three options:

  1. killall Terminal. It will end the process, but rather abruptly. I don\'t t

14条回答
  •  旧时难觅i
    2020-12-12 16:39

    I've been using

    quit -n terminal

    at the end of my scripts. You have to have the terminal set to never prompt in preferences

    So Terminal > Preferences > Settings > Shell When the shell exits Close the window Prompt before closing Never

提交回复
热议问题