Project

gisterday

0.0
No commit activity in last 3 years
No release in over 3 years
A command line tool for creating Gists
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
>= 0
 Project Readme

Installation

Install with:

gem install gisterday 

Usage

Create Gists via the command line from existing files or on the fly. Authenticate with your GitHub account in order to store these Gists for later.

  • Use gist [filename] in order to create a new anonymoust gist.
  • If the file exists in the current directory, it will be pushed to a new Gist.
  • If the file does not exist, Vim will be opened so the file can be created.

Examples

Open Vim in order to write a new Gist from scratch

gist 

Create a gist with the description "set a description", upload it anonymously, and create the gist using the contents of myfile.rb Alternatively, if myfile.rb does not exist, Vim will be opened to edit a new file called myfile.rb

gist -d "set a description" -a myfile.rb

Logging In

  • Use gist login to authenticate with your GitHub account.
  • A personal access token will be created and stored in ~/.gisterday for access on subsequent uses of Gisterday.

Options

  • Use the flag -a to create the gist anonymously (skip auth). Note that unless a personal access token is stored in ~/.gisterday all Gists will be created anonymously.
  • Use the flag -d to set a description for the Gist.
  • Use the flag -v for a more verbose http response with the full response body.