首先你先把的sublime放到Application中,再确认您的Sublime的路径是否正确
1 创建别名:
sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
2 配置环境变量:
vim ~/.bash_profile
输入下面的内容并保存退出:
alias subl="open -a /Applications/Sublime Text.app"
PATH=/usr/local/bin:$PATH
source ~/.bash_profile.
3 执行执行subl打开sublimeText