In my text editor, I have bound a shortcut key to deploy my code by invoking a command like
/usr/bin/open /Users/blahblah/run_deployThat deploy script uploads my code to my server etc. I am using "open" so that I can see the output in a new terminal window in case there are any errors. Very convenient, but in the end it leaves the terminal window open with text "[Process completed]".
Any way to skip this and instead just automatically close the window?
2 Answers
In Terminal Preferences, in Profiles pane select the Profile you use (should say "default" under it's name), select sub-pane Shell and change «When the shell exits:» to «Close if the shell exited cleanly».
It will not hide the [Process completed] message, but will close the window if exit code was successful.
Repairing permissions via the Disk utility app solved the problem for me.
I kept seeing the error in the Console app:
20/08/2015 01:17:42.318 login[3291]: in pam_sm_open_session(): Unable to write the utmp record.