https://github.com/ivanvc/gists-tmbundle
TextMate bundle to create private/public gists from the selected text
https://github.com/ivanvc/gists-tmbundle
Last synced: over 1 year ago
JSON representation
TextMate bundle to create private/public gists from the selected text
- Host: GitHub
- URL: https://github.com/ivanvc/gists-tmbundle
- Owner: ivanvc
- License: mit
- Created: 2009-07-01T23:09:10.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2011-04-29T16:03:07.000Z (about 15 years ago)
- Last Synced: 2025-03-18T07:32:00.995Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 161 KB
- Stars: 72
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
- License: MIT-LICENSE
Awesome Lists containing this project
README
h1. 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.
h2. Pre-requisites
* Install ruby
* Configure your "GitHub account":https://github.com/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]"
h2. 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
h2. Note
If setting your user/token in your shell environment, TextMate must be launched via the command line `mate` command, NOT from the dock or Finder. Otherwise it won't pick up the variables (strange behavior on TextMate's part).
h2. Credits
Thanks to "jjb":http://github.com/jjb, "dandean":http://github.com/dandean, and "beaucollins":http://github.com/beaucollins for their contributions.