aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-16 17:01:37 +0800
committertypebrook <typebrook@gmail.com>2020-03-16 17:01:37 +0800
commitdd93eaf5f23346f16bd6652612c92d4cd1873a29 (patch)
tree64b4b860884cf6f1eeb9a534cdc3b99ed814416b
parentd0555d2ad1c4aea31e77e381c8cec6fd3fb47239 (diff)
Change format when creating a new gist
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index ea217a9..f1583bb 100755
--- a/gist
+++ b/gist
@@ -521,7 +521,7 @@ _new_file() {
521 [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty 521 [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty
522 tmp_file=$(mktemp) 522 tmp_file=$(mktemp)
523 cat > "$tmp_file" 523 cat > "$tmp_file"
524 echo -e '\n' > /dev/tty 524 echo > /dev/tty
525 [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty 525 [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty
526 mv "$tmp_file" /tmp/"$filename" 526 mv "$tmp_file" /tmp/"$filename"
527 echo /tmp/"$filename" 527 echo /tmp/"$filename"