Close terminal window on Ctrl+D for macOS I always forget how to set this up. It's hidden in Preferences -> Profiles -> Basic -> Shell: