From 4bcc6af0ae198d99226cdfc6bdd098392f894547 Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 12 May 2020 01:50:20 +0800 Subject: Use valid URL when export to github Also change some texts --- gist | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gist b/gist index c46b84d..16990e6 100755 --- a/gist +++ b/gist @@ -32,7 +32,7 @@ # clean, C Clean local repos of removed gists # config, c [token|user|folder|auto_sync|EDITOR|action|protocol|show_untagged [value]] Do configuration # user, u Get list of gists with a given Github user -# github, G Import selected gist as a new Github repo +# github, G Export selected gist as a new Github repo # help, h Show this help message # version Get the tool version # update Update Bash-Snippet Tools @@ -616,10 +616,10 @@ _show_detail() { } # Open Github repository import page -_import_to_github() { +_export_to_github() { _gist_id "$1" || return 1 - echo put the folowing URL into web page: - echo -n "git@github.com:$GIST_ID.git" + echo Put the folowing URL into web page: + echo -n "https://gist.github.com/$GIST_ID.git" python -mwebbrowser https://github.com/new/import } @@ -881,7 +881,7 @@ case "$1" in _grep_content "$@" ;; github | G) shift - _import_to_github "$1" ;; + _export_to_github "$1" ;; push | P) shift _push_to_remote "$1" ;; -- cgit v1.2.3-70-g09d2