https://pypi.org/project/python-gist/
You will need an access token from GitHub for python-gist, you can get one under
Settings > Developper Settings > Personal access tokens
Create a .gist file under your HOME folder like this:
[gist]
token: yourtoken
editor: youreditor
Then create a directory named "poopdb" under your home folder and copy gistR.sh and poopdb.engine to it.
Copy this to your .bashrc to get the functionality
if [ -d "$HOME/poopdb" ]; then
mkdir -p $HOME/poopdb/db
export POOPDB_DIR="$HOME/poopdb/db"
export POOPDB_ENGINE="$HOME/poopdb/poopdb.engine"
. "$HOME/poopdb/gistR.sh"
else
echo "Cannot find poopdb at $HOME/poopdb"
fi
Or execute install.sh which will do the same
chmod +x install.sh
./install.sh
You can populate the poopdab with existing gists by executing
chmod +x populate.sh
./populate.sh
- gi : shorthand for the original gist command
- gil : list all gists
- gill : list all gists and ID
- gic : create new gist gic name "description" files...
- girm : remove a gist grim name
- gig : get gist content gig name or gig name filename
- gif : get filenames in a gist gif name
- giclo : clone a gist giclo name