Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
TextMate bundle to create private/public gists from the selected text
Ruby
Tree: 9380ed1256

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Commands
Support
MIT-LICENSE
README.textile
info.plist

README.textile

TextMate Bundle to create Public/Private Gists

With this bundle you can simply create public and private gists. You need to have Ruby, and configured your GitHub username and token in your global config. The URL will be copied to the clipboard.

Pre-requisites

  • Install ruby
  • Configure your GitHub account
  • If for some reason your git binary is in a place that /usr/bin/env cannot locate, then you can set it to a TextMate Shell variable (`TM_GIT`), or add the path its in to `PATH`. For example, if you installed git from MacPorts, you would add `/opt/local/bin:` to the front of `PATH`,
  • add your github username and token to your git config:

    $ git config --global github.user [your username] $ git config --global github.token [your token]

    or to your shell environment:

    export GITHUB_USER="[your username]" export GITHUB_TOKEN="[your token]"

Install

mkdir -p ~/Library/Application\ Support/TextMate/Bundles/ cd ~/Library/Application\ Support/TextMate/Bundles git clone git://github.com/ivanvc/gists-tmbundle.git Gists.tmbundle osascript -e 'tell app "TextMate" to reload bundles'

h2. That’s it

  • Use ⌘⌥⇧I to create a private gist
  • Use ⌘⌥⇧U to create a public gist

Credits

Thanks to jjb, dandean, and beaucollins for their contributions.

Something went wrong with that request. Please try again.