InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Mac Command Line tutorials

  • Bulk convert jpeg files to png using sips on mac
  • Custom terminal tab title and ssh on mac
  • How to convert text to speech on Mac using command line utility say
  • How to join multiple pdf files on Mac
  • How to use qpdf to add/remove password from pdf on mac
  • Install redis on Mac
  • Mac - find which process is listening on a port
  • Mac - hide and unhide a file or directory
  • Mac - open a terminal from a folder
  • Mac - print java home on command line
  • Mac - search files on command line using mdfind
  • Mac command line convert svg to png
  • Mac command line utility open - some handy tips for better productivity
  • Mac terminal - how to close shell on exit
  • mac pkgutil - quick start guide
 
  • Home
  • > Tutorials
  • > Mac
  • > Mac Command Line

Mac terminal – how to close shell on exit

By admin on Oct 2, 2015

It is somewhat tedious to close a terminal window shell manually after the shell exit. By default Mac terminal does not close the shell on exit. Here is how a shell looks like if you exit using CTR-D.terminal-shell-after-exit

You can change the behaviour to close shell after a clean exit. For this click on Terminal > Preferences... > Profiles. Then select the desired profile and then select shell tab. Change the settings for “when the shell exits” to “close if shell exited cleanly” as shown below:
terminal-preference-profile-shell-close-if-shell-exited-cleanly
Now when you exit a shell using CTR-D, the shell will close automatically.

Suggested posts:

  1. Mac – open a terminal from a folder
  2. PHP execute command and capture shell exit status
  3. Jenkins execute shell – how to continue on error
  4. Bash – how to run custom commands at script exit
  5. Mac – open Finder from terminal – quick tip
  6. How to change computer display name on Mac
  7. How to create animated gif using Mac preview
  8. Iterate over specific file extension in a dir in shell script
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Mac, Mac Command Line, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2023 InfoHeap.

Powered by WordPress