-
Notifications
You must be signed in to change notification settings - Fork 23
SublimeOnMac
-
first determine where the Sublime command line app is located on your Mac. The command line version is called "subl". It will be in your filesystem pretty close to here: /Applications/Sublime Text.app/Contents/SharedSupport/bin/subl
-
Once you've found it, you want to make it much easier to execute in the future, so create a symbolic link (symlink) to it in the directory '/usr/local/bin':
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
(Note that back-slash before the space in the directory name; also note that you'll need administrative privileges to do this on your Mac; if you don't have admin privileges, talk with one of the Instructors about this. Note also that we've named the symbolic link to "sublime" rather than 'subl', to better remember what it is. You can "alias" it to whatever you want in your bash setup files...)
- Now reset your GIT editor as such:
- git config --global core.editor "/usr/local/bin/sublime -n -w"
tada