- 使用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)
vim ~/.bash_profile
alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
source ~/.bash_profile
4.使用subl打开文件
subl 文件名
本文标题:Mac在终端下使用编辑器(Sublime)打开文件
本文链接:https://www.haomeiwen.com/subject/eolspxtx.html
网友评论