1.添加link
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
2.编辑PATH
vim ~/.bash_profile
3.添加PATH
export PATH=/usr/local/bin:$PATH
4.应用
source ~/.bash_profile
时间: 2024-11-05 20:24:30
1.添加link
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
2.编辑PATH
vim ~/.bash_profile
3.添加PATH
export PATH=/usr/local/bin:$PATH
4.应用
source ~/.bash_profile