Project

togist

0.0
No commit activity in last 3 years
No release in over 3 years
A simple wrapper to send something to gist & copy the URL to the clipboard
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

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