aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/gist
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-13 11:30:26 +0800
committertypebrook <typebrook@gmail.com>2020-01-13 11:30:26 +0800
commit29cedfbdacfe2920b17669a43d0bd05a3050aa3f (patch)
treec9e2f35fd1bc94a11f61de6d9b81a22d90e4aee5 /scripts/gist
parentd3a16443ad46083a3310da630e29fb886d5345af (diff)
update
Diffstat (limited to 'scripts/gist')
-rwxr-xr-xscripts/gist7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist
index 380a369..0fb162f 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -165,6 +165,10 @@ _edit_gist() {
165 _update 165 _update
166} 166}
167 167
168_help_message() {
169 sed -r -n ' /^$/ q; 8,$ s/^#//p' $0
170}
171
168case "$1" in 172case "$1" in
169 "") 173 "")
170 _show_list 174 _show_list
@@ -191,6 +195,9 @@ case "$1" in
191 clean | C) 195 clean | C)
192 _clean_repos 196 _clean_repos
193 ;; 197 ;;
198 help | h)
199 _help_message
200 ;;
194 *) 201 *)
195 _goto_gist "$1" 202 _goto_gist "$1"
196 ;; 203 ;;