diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gist | 7 |
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 | |||
168 | case "$1" in | 172 | case "$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 | ;; |