独角兽企业重金招聘Python工程师标准>>>
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打开该目录的文件
如果觉得《MAC在终端用subl打开文件》对你有帮助,请点赞、收藏,并留下你的观点哦!