I want to launch sublime from a command line in Mac, using subl filename. It seems to involve dealing with .bash_profile. But I didn't locate the file. What steps to be taken?
subl filename
.bash_profile
A typical install of OS X won't create a .bash_profile for you. When you want to run functions from your command line, this is a must-have.
cd ~/
touch .bash_profile
open -e .bash_profile
. .bash_profile
1.4m articles
1.4m replys
5 comments
57.0k users