aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rwxr-xr-xgist9
2 files changed, 4 insertions, 7 deletions
diff --git a/README.md b/README.md
index 7c2c868..0d18f57 100644
--- a/README.md
+++ b/README.md
@@ -44,7 +44,7 @@ like following:
44- Use `gist star` to show your starred gist 44- Use `gist star` to show your starred gist
45- Index with prefix `s` is a starred gist, index with prefix `p` is a private gist 45- Index with prefix `s` is a starred gist, index with prefix `p` is a private gist
46- There are colorful hints for each gist in the following cases: 46- There are colorful hints for each gist in the following cases:
47 - **working:** some changes are made locally but not yet do `git commit` 47 - **working:** some changes are made locally but not yet do `git commit`, or you are not in `master` branch
48 - **ahead:** your local head is yet to be applied to upstream 48 - **ahead:** your local head is yet to be applied to upstream
49 - **outdated:** your local head is differs from the last fetched gists, do `gist fetch` to refresh index file and pull if needed 49 - **outdated:** your local head is differs from the last fetched gists, do `gist fetch` to refresh index file and pull if needed
50 50
diff --git a/gist b/gist
index 197796a..5e9789e 100755
--- a/gist
+++ b/gist
@@ -527,7 +527,7 @@ _new_file() {
527 [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty 527 [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty
528 tmp_file=$(mktemp) 528 tmp_file=$(mktemp)
529 cat > "$tmp_file" 529 cat > "$tmp_file"
530 echo -e '\n' > /dev/tty 530 echo > /dev/tty
531 [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty 531 [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty
532 mv "$tmp_file" /tmp/"$filename" 532 mv "$tmp_file" /tmp/"$filename"
533 echo /tmp/"$filename" 533 echo /tmp/"$filename"
@@ -652,13 +652,10 @@ case "$1" in
652 shift 652 shift
653 _push_to_remote "$1" ;; 653 _push_to_remote "$1" ;;
654 version) 654 version)
655 echo "Version $currentVersion" 655 echo "Version $currentVersion" ;;
656 exit 0 ;;
657 update) 656 update)
658 checkInternet || exit 1 657 checkInternet || exit 1
659 update 658 update ;;
660 exit 0
661 ;;
662 help | h) 659 help | h)
663 usage ;; 660 usage ;;
664 *) 661 *)