Last active
July 19, 2018 20:23
-
-
Save weirdpattern/b1c67aab24cb07c2d071654bbfa4253c to your computer and use it in GitHub Desktop.
.2016.09.26.exit-quit-terminal-shortcut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016.09.26.exit-quit-terminal-shortcut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will exit the terminal process and then close the terminal window (no more ⌘ + Q) | |
$ quit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export TERMINAL=<TERMINAL> | |
alias quit='/usr/bin/osascript -e "tell application \"$TERMINAL\" to quit"; exit' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment