Mac在终端下使用编辑器(Sublime)打开文件
2017-10-28 本文已影响3人
53b3f4658edc
- 使用vim编辑~/.bash_profile
vim ~/.bash_profile
- 追加内容
alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
- 使配置生效
source ~/.bash_profile
4.使用subl打开文件
subl 文件名
![](https://img.haomeiwen.com/i8244809/346b0c579005eb91.gif)