Open Sublime Text 3 from Terminal in macOS Mojave Linux

Start or Launch Sublime Text 3 from terminal by subl or sublime in Linux command line

1- Mac OS:

open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
subl .orsublime ~/Desktop
echo $PATH
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

2- Linux:

subl .
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/subl
subl .
or
sublime .

--

--

Posting about Python and Laravel

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store