Use Mac terminal with sublime target file or destination folder

Source: Internet
Author: User
Tags sublime text

First, open the Terminal execution command

vim ~/.bash_profile

Enter the following command in. bash_profile

alias subl="‘/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl‘"

Wq after saving, go back to the command line and execute the following command to take effect:

source ~/.bash_profile

Here we assume that the command line opens with Sublimetext. Bash_profile, then execute as follows:

subl ~/.bash_profile

接下来 我们就可以在终端 使用 subl 目标文件 语句来打开文件了。

 

 

Use Mac terminal with sublime target file or destination folder

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.