Skip to content

Instantly share code, notes, and snippets.

@Marzogh
Created March 29, 2017 02:13
Show Gist options
  • Save Marzogh/1f8a748afe16ca8b6339e6e674caf8db to your computer and use it in GitHub Desktop.
Save Marzogh/1f8a748afe16ca8b6339e6e674caf8db to your computer and use it in GitHub Desktop.
Add the following line to your .bash_profile, save and exit. (On iMacs you can access this by typing 'nano ~/.bash_profile' in terminal). This will let you close your terminal window with the one word command 'quit'
alias quit='osascript -e "do shell script \"osascript -e \\\"tell application \\\\\\\"Terminal\\\\\\\" to quit\\\" &> /dev/null &\""; exit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment