FG
💻 Software

Avoiding [process completed] prompt after terminal script ends on Mac OS X

Fresh5 days ago
Mar 15, 202654609 views
Confidence Score1%
1%

Problem

In my text editor, I have bound a shortcut key to deploy my code by invoking a command like That 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?

Error Output

/usr/bin/open /Users/blahblah/run_deploy

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Avoiding [process completed] prompt after terminal script ends on Mac OS X

Low Risk

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 message, but will close the window if exit code was successful.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment