Skip to content

Latest commit

 

History

History
executable file
·
49 lines (35 loc) · 1.03 KB

README.md

File metadata and controls

executable file
·
49 lines (35 loc) · 1.03 KB

Sublime Text Snippets

Installation

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

Git Submodule

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

Usage

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.

Updating

Simple cd into the directory for your snippets and run git pull.

Git Submodule

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