MacOS – How to i change Terminal Settings to automatically close terminal after Execution using shell script

applescriptmacmacosterminal

when i execute some command file or shell file after execution terminal remains open and its not look appropriate i want to close the terminal by script without changing settings manually in MAC
please help..

Best Answer

You can exit the terminal by calling to two commands after each other, execute script and then exit

$> myScript.sh && exit