diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-17 14:58:14 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-17 14:58:14 +0800 |
| commit | 3070e940c4d9a892b34bbc0684787775569f0810 (patch) | |
| tree | 48274d3109cc675d2d42f0f9b07382b470862aa3 /scripts | |
| parent | ca33398f081828ce1f29a6d2da45bdfa8986ecf2 (diff) | |
update
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/gist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index 72772bd..d2acc7d 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -86,6 +86,7 @@ _show_list() { | |||
| 86 | # get the list of gists | 86 | # get the list of gists |
| 87 | # TODO support secret gist | 87 | # TODO support secret gist |
| 88 | _update() { | 88 | _update() { |
| 89 | echo "fetching from api.gist.com" > /dev/tty | ||
| 89 | list_file=$index | 90 | list_file=$index |
| 90 | route="users/$user/gists" | 91 | route="users/$user/gists" |
| 91 | mark="" | 92 | mark="" |
| @@ -225,7 +226,7 @@ case "$1" in | |||
| 225 | _update "$2" | 226 | _update "$2" |
| 226 | ;; | 227 | ;; |
| 227 | star | s) | 228 | star | s) |
| 228 | _show_list $starred | 229 | [[ $2 =~ ^(update|u) ]] && _update --star || _show_list $starred |
| 229 | ;; | 230 | ;; |
| 230 | sync | S) | 231 | sync | S) |
| 231 | _sync_repos | 232 | _sync_repos |