MAC在终端用subl打开文件

1. 打开bash_profile文件

vi ~/.bash_profile

2.添加链接

alias subl=\''/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl'\'

3.使其生效

source ~/.bash_profile

4.验证结果

subl ./         #用subl打开该目录的文件
 

猜你喜欢

转载自my.oschina.net/u/2263272/blog/1629996