diff options
-rwxr-xr-x | gist | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -32,7 +32,7 @@ | |||
32 | # clean, C Clean local repos of removed gists | 32 | # clean, C Clean local repos of removed gists |
33 | # config, c [token|user|folder|auto_sync|EDITOR|action|protocol|show_untagged [value]] Do configuration | 33 | # config, c [token|user|folder|auto_sync|EDITOR|action|protocol|show_untagged [value]] Do configuration |
34 | # user, u <USER> Get list of gists with a given Github user | 34 | # user, u <USER> Get list of gists with a given Github user |
35 | # github, G <INDEX> Import selected gist as a new Github repo | 35 | # github, G <INDEX> Export selected gist as a new Github repo |
36 | # help, h Show this help message | 36 | # help, h Show this help message |
37 | # version Get the tool version | 37 | # version Get the tool version |
38 | # update Update Bash-Snippet Tools | 38 | # update Update Bash-Snippet Tools |
@@ -616,10 +616,10 @@ _show_detail() { | |||
616 | } | 616 | } |
617 | 617 | ||
618 | # Open Github repository import page | 618 | # Open Github repository import page |
619 | _import_to_github() { | 619 | _export_to_github() { |
620 | _gist_id "$1" || return 1 | 620 | _gist_id "$1" || return 1 |
621 | echo put the folowing URL into web page: | 621 | echo Put the folowing URL into web page: |
622 | echo -n "git@github.com:$GIST_ID.git" | 622 | echo -n "https://gist.github.com/$GIST_ID.git" |
623 | python -mwebbrowser https://github.com/new/import | 623 | python -mwebbrowser https://github.com/new/import |
624 | } | 624 | } |
625 | 625 | ||
@@ -881,7 +881,7 @@ case "$1" in | |||
881 | _grep_content "$@" ;; | 881 | _grep_content "$@" ;; |
882 | github | G) | 882 | github | G) |
883 | shift | 883 | shift |
884 | _import_to_github "$1" ;; | 884 | _export_to_github "$1" ;; |
885 | push | P) | 885 | push | P) |
886 | shift | 886 | shift |
887 | _push_to_remote "$1" ;; | 887 | _push_to_remote "$1" ;; |