Last Updated: February 25, 2016
·
3.442K
· pleone

gist script from command line

We love gist and we love shell. So here is a useful script!

Install ( with ruby gems )

gem install jist  

Yes, it's jist and NOT gist. The official gist packages has many issues and actually not working and not maintened anymore.

Configuration
You can post a gist as anonymous user, but would be better with your github account, isn't it? ;)
So, ready to go:

jist --login
$ Obtaining OAuth2 access_token from github.
Github username: pleone
Github password:  superSecretPassword
$ Success! https://github.com/settings/applications

Usage
There are many usages (each one of the following row is a different usage).

"Gisting" a file:

jist a.rb

And it returns you the url -> https://gist.github.com/0d07bc98c139810a4075

Pasting from clipboard:

jist -P

Updating a gist:

jist lib/jist.rb bin/jist -u 42f2c239d2eb57299408

See more infor at:
https://github.com/ConradIrwin/jist

1 Response
Add your response

This looks great. I use the gist package in the package manager for sublime text 2 which is also great.

over 1 year ago ·