From 9809c55f5052cfc361c66e22ae959c54fc95b1f9 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 17 Jan 2020 11:50:04 +0800 Subject: update --- scripts/gist | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/gist') diff --git a/scripts/gist b/scripts/gist index 2f99b23..1e9cf8e 100755 --- a/scripts/gist +++ b/scripts/gist @@ -5,7 +5,7 @@ # https://gist.github.com/typebrook/b0d2e7e67aa50298fdf8111ae7466b56 # # -# This script host your gists as local Github repo +# This script host your gists as local cloned git repo # It works under GNU with jq and curl, both are easy to get in most cases # # Use the following commands to manage your gists: @@ -127,6 +127,7 @@ _sync_repos() { echo Everything is fine! } +# TODO simplify _gist_id() { list_file=$index row_num=$1 @@ -175,6 +176,7 @@ _show_detail() { } # create a new gist with files +# FIXME consider file not exist -> let user type? return 1? _create_gist() { echo -n 'description: ' read DESC @@ -213,7 +215,7 @@ case "$1" in "") _show_list ;; - create | c) + new | n) shift; _create_gist $@ ;; -- cgit v1.2.3-70-g09d2