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
Written by pleone
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#