As the name suggested. I would like to have something like:
sublime ./My_project/my_example.cpp
Then it opens the my_example.cpp in SublimeText for me.
As the name suggested. I would like to have something like:
sublime ./My_project/my_example.cpp
Then it opens the my_example.cpp in SublimeText for me.
Sublime text includes a command line script subl
but you'll need to link it into your /usr/local/bin
ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' /usr/local/bin
(and you may need sudo)
I'm not sure what SublimeText is, but if it is an app bundle you can do:
$ open -a SublimeText.app ./My_project/my_example.cpp
You can do a few other things if you really want it to be exactly the syntax you suggested:
$ alias sublime='open -a SublimeText.app'
enter that in a terminal, or add it to your ~/.profile
.