Today I have studied the Mac terminal startup process. The following uses sublime as an example to describe how to add an app startup method to a Mac terminal.
Method 1: Use "open-A/applications/sublime \ Text \ 2.app/". This method can be opened directly, but it is easy to do this every time. Method 2 found on the Internet
Method 2: Use "alias sublime = 'open-A/applications/sublime \ Text \ 2.app/ '", so that we can directly open sublime after executing the sublime command, however, If you disable the terminal and restart it, it will become invalid.
Method 3: Right-click sublime-contents-sharedsupport-bin in the application and find a subl file. Copy the file to the/usr/bin/directory (you can use command + Shift + G to open the path ). Then you can execute subl in the terminal to open sublime, which is convenient and will not expire.
/********************************
* This article is from the blog "Li bogarvin"
* Indicate the source for reprinting.: Http://blog.csdn.net/buptgshengod
**************************************** **/
Mac opens the application on the terminal