Create/paste snippets from Terminal
Share gists from Terminal
Here is how it works in terminal.
You can update an existing gist if you know its hash ID. It has a man page yeah ;-)
Share gists from EDITOR
If you’re using
vim, add this line to your
Now in command mode, you can type
GT and hit enter to create a snippet from
your editor’s window.
Get gists output in Terminal
So now you know how to share snippets from terminal. But what if someone has given you some URL and you want to see it in terminal?
I have got this snippet shared, for example
It’s hosted on github at this URL.
wget you will get this github page html in your terminal.
So here is a magic trick for you ;-)
githubusercontent and append
/raw at the end.
The above snippet’s URL now becomes:
Now you can use
wget to see/save the snippent right from your
That’s it. You can save it to some file as well.
Thanks for reading.