Sublime Text Shortcut Guide
Originally via StackOverflow
- Open Mac Terminal
- Go to homebrew.sh; copy and enter the following:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Enter
brew install wget
- Enter the following into your Mac Terminal:
open ~/.bash_profile
but if for whatever reason you don't have one configured, entersudo nano .bash_profile
. Please be advised, this solution presumes you are the root user of your system/device. - ToOpen another tab within the terminal-window and check Ruby version (e.g.
ruby -v
); if absent, become sufficiently by Rubified by entering:brew install ruby
- Download Sublime Text 3, then go to root/usr (e.g.
cd alexanderjsingleton/
). - Next after you've installed Sublime 3,
open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl
- Create a symlink called sublime by entering
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
- Enter the following into your Mac Terminal:
open ~/.bash_profile
but if for whatever reason you don't have one configured, entersudo nano .bash_profile
. - Exit and open your bash profile; the following example should be contained in the profile
export PATH=/usr/local/bin:$PATH
. This is the same file location for other user-profile settings for applications like iTerm. - Test by entering the directory of app-files (e.g.
sublime .
). - Boom! A special thanks to the great Ashley Nolan's blog, though for whatever reason my new MacBookPro couldn't access the bash-profile, so I had to create one, which is why I included that caveat in step 4. I trust this will assuage any systemAdmin anguish fellow developers may take for granted. :D