From be55fb98c1c2340fbc7bec2f4bb26877411a19ca Mon Sep 17 00:00:00 2001 From: typebrook Date: Thu, 23 Apr 2020 16:00:36 +0800 Subject: Refactor code --- gist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gist b/gist index a4ec0f5..b68d8c8 100755 --- a/gist +++ b/gist @@ -64,8 +64,9 @@ CONFIG=~/.config/gist.conf; mkdir -p ~/.config INDEX_FORMAT=('index' 'url' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description') TAG_CHAR='-_[:alnum:]' [[ ! -t 0 ]] && INPUT=$(cat) -[[ ! -t 1 && -z $hint ]] && hint=false +# Default configuration +[[ ! -t 1 && -z $hint ]] && hint=false auto_sync=true # automatically clone the gist repo protocol=https -- cgit v1.2.3-70-g09d2