From c64253702cf8917b38b3b23c16c4d21a788c6dd9 Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 26 Dec 2019 14:58:33 +0800 Subject: update --- scripts/gist | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index cde4ec7..c449e7d 100755 --- a/scripts/gist +++ b/scripts/gist @@ -1,9 +1,46 @@ -#!/bin/bash +#!/usr/bin/env bash +# +# Author: Hsieh Chin Fan +# License: MIT +# https://gist.github.com/typebrook/b0d2e7e67aa50298fdf8111ae7466b56 +# +# +# This script host your gists as local Github repo +# Use the following commands to manage your gists +# +# * update your gists list with Github API +# gist [update | u] +# +# * list your gists with format: [number] [url] [file_num] [comment_num] [short description] +# gist +# +# * clone gist repos which are not in local +# gist [sync | s] +# +# * Go to local gist repo +# gist +# +# * create a new gist with a file and description +# gist [create | c] "" +# +# * show the detail of a gist +# gist [detail | d] +# +# * edit a gist description +# gist [edit | e] +# +# * delete a gist +# gist [delete | D] +# +# * clean removed gists in local +# gist [clean | C] # define your environmemnts here +#------------------- github_api_token=$(cat $SETTING_DIR/tokens/github) user=typebrook folder=~/git/gist +#------------------- github_api=https://api.github.com auth_header="Authorization: token $github_api_token" -- cgit v1.2.3-70-g09d2