8000 GitHub - jakeswenson/gist: A simple Github Gist client
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jakeswenson/gist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gist

A command-line tool for publishing gists, inspired by icholy/gist.

Build Status

Usage

Read a file from stdin:

cat notes.md | gist

Set a file name:

cat error.log | gist -f "weird-bug.log"

Make a public Gist:

cat file.sh | gist -p

Multiple files?

gist src/*.rs

I want the Gist's URL copied to my clipboard, when it's done:

# *nix / X.org
echo stuff | gist | xclip

# mac
echo something | gist | pbcopy

Installation

Installation currently requires cargo, just cargo install gist.

For authentication, the program requires an environment variable called GITHUB_GIST_T 5CAE OKEN or GITHUB_TOKEN. It is mandatory as Github killed anonymous Gists in 2018.

You can generate one at: https://github.com/settings/tokens

Then append it to your .profile, or something with:

export GITHUB_TOKEN="blah blah blah"
# or
export GITHUB_GIST_TOKEN="blah blah blah"

License

MIT.

Hacking & bug reports

Yes please: file issues, or better send patches and pull-requests.

About

A simple Github Gist client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%
0