cd ~/"Library/Application Support/Sublime Text 2/Packages/" git clone https://github.com/bgreenlee/sublime-github.git
The plugin should be picked up automatically. If not, restart Sublime Text.
First, your Github username and API token needs to be set. See http://help.github.com/set-your-user-name-email-and-github-token/ to see how to do this. Then:
- Select some text.
- Bring up the Command Palette (⇧⌘P by default)
- Start typing "Github", and select either "Private Gist from Selection" or "Public Gist from Selection"
- At the bottom of your editor, you'll be prompted for a description. After entering that, you'll be prompted for a filename.
- The url for your new gist will be copied to the clipboard.
Copyright © 2011 Brad Greenlee. See LICENSE for details.