-
- vim ~/.bash_profile, add the following content
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
-
- source ~/.bash_profile
source ~/.bash_profile
-
- open file using
subl
- open file using
subl aaa.txt
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
source ~/.bash_profile
subl
subl aaa.txt