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.
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
There are many usages (each one of the following row is a different usage).
"Gisting" a file:
And it returns you the url -> https://gist.github.com/0d07bc98c139810a4075
Pasting from clipboard:
Updating a gist:
jist lib/jist.rb bin/jist -u 42f2c239d2eb57299408
See more infor at: