0

I often open my terminal with multiple tabs, and exit with exit command in Ubuntu.
What about mac? Except the Cmd+w.

2

Not sure if you have such a command, but I believe you can set up Mac OS X terminal to close when you type exit.

This will close the window but not the terminal app. Please have a look at this question about how to also quite the terminal app when typing exit.

  • So there's no native command like exit? Well, I see. Thank you, @OleBrun. :) – Kjuly Dec 15 '11 at 8:07
2

I also had this question, but I really don't like the osascript hack. Finally I found this answer at Ask Different. I think it's a native.

screenshot

The above screenshot shows a Terminal dialog in German, which when translated roughly means:

the end of the shell
conclude if no error occurred.

So it looks like you could configure Terminal to close when the shell is terminated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.