diff options
author | typebrook <typebrook@gmail.com> | 2020-03-16 17:01:37 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-16 17:01:37 +0800 |
commit | dd93eaf5f23346f16bd6652612c92d4cd1873a29 (patch) | |
tree | 64b4b860884cf6f1eeb9a534cdc3b99ed814416b | |
parent | d0555d2ad1c4aea31e77e381c8cec6fd3fb47239 (diff) |
Change format when creating a new gist
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |