Skip to content
A simple app that will send command line output into a private or public gist, copy the url to your clipboard, and (if requested) open that url in your browser.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
togist.gemspec

README.md

ToGist

A simple app that will send command line output into a private or public gist, copy the url to your clipboard, and (if requested) open that url in your browser.

Installation

Run this command in your terminal:

gem 'togist'

Or install it yourself:

$ rake install togist

###Rbenv You'll probably need to run: rbenv rehash

Usage

Output files or commands and pipe them into either shortcut: echo 'foo' | 2g cat foo.rb | 2g ###Shortcuts: 2g : Uploads to private gist and copies gist url to mac clipboard 2gpub : Same as above except public ###Tips:

Add an 'o' to the end of a shortcut to make it open your browser to the gist:

echo 'foo' | 2go # Will open to the private gist url    
echo 'foo' | 2gpubo # Will open to the public gist url

Requirements

Linux: for clipboard to work, xclip or xsel must be installed. If they're not, togist is basically useless on linux.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.