aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-05-12 01:50:20 +0800
committertypebrook <typebrook@gmail.com>2020-05-12 09:15:39 +0800
commit4bcc6af0ae198d99226cdfc6bdd098392f894547 (patch)
treeaf9c682f2eccc3d2d8ca62e079aa7d55e682f5b1
parent4090e15269842705b335885bfcb8294127ff2f0e (diff)
Use valid URL when export to github0.2
Also change some texts
-rwxr-xr-xgist10
1 files changed, 5 insertions, 5 deletions
diff --git a/gist b/gist
index c46b84d..16990e6 100755
--- a/gist
+++ b/gist
@@ -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" ;;