When I\'m done with Terminal, I want to exit it. Right now, I have three options:
killall Terminal. It will end the process, but rather abruptly. I don\'t t
cat ~/exit.scpt
command + w
to close the tab)tell application "Terminal"
set WindowNum to get window count
if WindowNum = 1 then
quit
else
tell application "System Events" to keystroke "w" using command down
end if
end tell
just like vi ~/.bashrc
or zshrc
(anything else?)
add it:
alias exit="osascript ~/exit.scpt"