vim ~/.bash_profile
add line after the file:
alias subl=\''/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'\'
source ~/.bash_profile
vim ~/.bash_profile
add line after the file:
alias subl=\''/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'\'
source ~/.bash_profile
转载于:https://www.cnblogs.com/SATinnovation/p/10375665.html