Download Sublime Text 3 open the .dmg file and move the app into the Applications folder.
Too keep the app in the Dock, right click > Options > Keep in Dock.
You can add a shortcut to the Terminal so that you can open files and folders in Sublime straight from the command line:
$ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
Once you do that, you can open folders using subl .
or files subl /path/to/file/my_file
.
In the next sections we will add Package Control and setup Sublime further.
One of the great advantages of Sublime Text is the ability to customise it easily. The following gist contains the User Settings I currently use.
I like my sidebar and general appeal of Sublime to be minimal and I am also a fan of the Base16 colour scheme. Spacegray Theme combines a minimal theme with the Base16 colour scheme. Another advantage of this theme, it can be installed through the Package Control:
"theme": "Spacegray.sublime-theme",
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme"
Package Control is ... In order to install Package Control, open Sublime's console (ctrl + `) and paste the following code:
import urllib.request,os,hashlib; h = '2deb499853c4371624f5a07e27c334aa' + 'bf8c4e67d14fb0525ba4f89698a6d7e1'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Note: double check the installation command here. Every release the command is changed.