How to install gister
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install gister
Lastest release
examples
- post a public gist on public github: cat dog | gister
- post a secret gist on public github: cat dog | gister -s
- post a public gist on private github deployment: cat dog | gister -p
- post a secret gist on private github deployment: cat dog | gister -ps
- post an anonymous gist on public github: cat dog | gister -a
- post an anonymous and secret gist on public github: cat dog | gister -as
- post an anonymous gist on private github deployment: cat dog | gister -ap
- post an anonymous and secret gist on private github deployment: cat dog | gister -aps
usage
install
- fix weird hgtools dependency issue: pip install hgtools
- clone the repo and python setup.py install
config file - .gister
an example configuration file .gister is given for you to use. it will be looked for in ~/.gister. it supports three values:
- prompt - configure your own prompt (using variables username/hostname/cwd)
- history_file - location of shell history file for command display
- private_github_url - if you plan on using -p/--private this url needs to be set to the location of your private github deployment
keyring
i prefer to store my oauth tokens in keyring because it's safer than storing it plain text in the .gister file. your python keyring needs to have a section for github with a key token containing a github oauth token linked to your account. if you use the private github, do the same for pgithub and token. i added mine like this: gist.
github oauth tokens
here is a gist of the process by which a token is acquired. the returned dict will have a token key in it denoting your token. you can also manage your tokens by managing your github account and selecting Applications.
using with vim
I added the following to my .vimrc to interact with gister: