aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-04-23 16:00:36 +0800
committertypebrook <typebrook@gmail.com>2020-04-23 16:00:36 +0800
commitbe55fb98c1c2340fbc7bec2f4bb26877411a19ca (patch)
tree9e11ae0618b14b99b1118cb5b84f833f86c6271a
parentfd9635181838330e61892c5b35866b2b7975336e (diff)
Refactor code
-rwxr-xr-xgist3
1 files changed, 2 insertions, 1 deletions
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
64INDEX_FORMAT=('index' 'url' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description') 64INDEX_FORMAT=('index' 'url' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description')
65TAG_CHAR='-_[:alnum:]' 65TAG_CHAR='-_[:alnum:]'
66[[ ! -t 0 ]] && INPUT=$(cat) 66[[ ! -t 0 ]] && INPUT=$(cat)
67[[ ! -t 1 && -z $hint ]] && hint=false
68 67
68# Default configuration
69[[ ! -t 1 && -z $hint ]] && hint=false
69auto_sync=true # automatically clone the gist repo 70auto_sync=true # automatically clone the gist repo
70protocol=https 71protocol=https
71 72