码迷,mamicode.com
首页 > 系统相关 > 详细

使用mac 终端 用sublime 目标文件或目标文件夹

时间:2016-12-06 02:29:49      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:文件   string   undefined   打开   ons   bash   content   bin   生效   

首先,打开终端 执行命令

vim ~/.bash_profile

在.bash_profile里输入以下命令

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

wq保存后回到命令行执行以下命令使其生效:

source ~/.bash_profile

  这里我们假设在命令行用SublimeText打开.bash_profile,则执行如下:

subl ~/.bash_profile

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

 

 
 

 

使用mac 终端 用sublime 目标文件或目标文件夹

标签:文件   string   undefined   打开   ons   bash   content   bin   生效   

原文地址:http://www.cnblogs.com/magicyangmei/p/6135852.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!