diff options
| author | typebrook <typebrook@gmail.com> | 2020-04-23 16:00:36 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-04-23 16:00:36 +0800 |
| commit | be55fb98c1c2340fbc7bec2f4bb26877411a19ca (patch) | |
| tree | 9e11ae0618b14b99b1118cb5b84f833f86c6271a | |
| parent | fd9635181838330e61892c5b35866b2b7975336e (diff) | |
Refactor code
| -rwxr-xr-x | gist | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -64,8 +64,9 @@ CONFIG=~/.config/gist.conf; mkdir -p ~/.config | |||
| 64 | INDEX_FORMAT=('index' 'url' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description') | 64 | INDEX_FORMAT=('index' 'url' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description') |
| 65 | TAG_CHAR='-_[:alnum:]' | 65 | TAG_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 | ||
| 69 | auto_sync=true # automatically clone the gist repo | 70 | auto_sync=true # automatically clone the gist repo |
| 70 | protocol=https | 71 | protocol=https |
| 71 | 72 | ||