cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User # Change path if you're using Sublime Text 2
git clone git@github.com:jordanwade/sublime-text-snippets.git Snippets
If you already have your Sublime Text settings in a repo (such as dotfiles), then use a Git Submodule instead:
cd path/to/dotfiles
git submodule add git@github.com:jordanwade/sublime-text-snippets.git path/to/Snippets
-> Commit the submodule addition
All snippets are prefixed to prevent clashing with Sublime Text's autocomplete.
- CoffeeScript:
cf
- Haml:
hm
- Sass:
ss
Once you type the prefix, you'll see the autocomplete list of snippets.
Simple cd
into the directory for your snippets and run git pull
.
If you created a Git Submodule, do the following to update:
cd path/to/dotfiles
git submodule update
cd path/to/Snippets
git pull
cd -
-> Commit the submodule update