Mac opens application in terminal

Source: Internet
Author: User

Today we study the start-up process for the next Mac terminal. The following is an example of how to add an app launch method to a Mac's terminal in sublime.


Method 1: Use "open-a/applications/sublime\ text\ 2.app/", this method can be opened directly, but every time to do so to avoid trouble. Find the method two on the net


Method 2: Use "Alias Sublime= ' open-a/applications/sublime\ text\ 2.app/'" so that we can open sublime directly after running the sublime command, But the disadvantage is that if you shut down the terminal and restart it, it will fail.


Method 3: Into the application, right-sublime-contents-sharedsupport-bin, we found there is a Subl file. We copy this file to the/usr/bin/folder (we can open the path with command+shift+g). You can then run the SUBL in the terminal to open the sublime, which is very convenient and does not fail.


/********************************

* This article from the blog "Bo Li Garvin"

* Reprint Please indicate the source : Http://blog.csdn.net/buptgshengod

******************************************/



Mac opens application in terminal

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.