How to Open Sublime Text from Terminal in MacOS
Why sublime text?
Sublime Text is the lightest IDE with GUI someone can ask for, as well as very powerful.
Installation
For MacOS just run the command in the terminal:
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl Usage
Now if you want to load a folder full of files, like a project
subl .
# or
subl ./myproject/srcOr if you want to load just a file
subl ./readme.mdThat’s it, enjoy!
If you enjoy also sublime merge
Installation
than also run the command
sudo ln -s /Applications/Sublime\ Merge.app/Contents/SharedSupport/bin/smerge /usr/local/bin/smergeUsage
Now if you want to load a folder full of files, like a project
smerge .
# or
smerge ./myproject/srcJust make sure your project has a .git folder!
That’s it, enjoy!
