aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist7
1 files changed, 3 insertions, 4 deletions
diff --git a/gist b/gist
index 9de9e3f..0b5dee4 100755
--- a/gist
+++ b/gist
@@ -40,7 +40,7 @@
40# gist (Show your gists) 40# gist (Show your gists)
41# gist 3 (show the repo path of your 3rd gist, and do custom actions) 41# gist 3 (show the repo path of your 3rd gist, and do custom actions)
42# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions) 42# gist 3 --no-action (show the repo path of your 3rd gist, and do not perform actions)
43# gist new foo bari (create a new gist with files foo and bar) 43# gist new foo bar (create a new gist with files foo and bar)
44# gist tag (Show your gists with tags) 44# gist tag (Show your gists with tags)
45# gist tag 3 (Add tags to your 3rd gist) 45# gist tag 3 (Add tags to your 3rd gist)
46# gist tag .+ (show tagged gists) 46# gist tag .+ (show tagged gists)
@@ -48,7 +48,7 @@
48# Since now a gist is a local cloned repo 48# Since now a gist is a local cloned repo
49# It is your business to do git commit and git push 49# It is your business to do git commit and git push
50 50
51# TODO user friendly config file 51# TODO change gist from public to private or reverse versa
52# TODO feature to exclude tag-value or grep-string 52# TODO feature to exclude tag-value or grep-string
53# TODO Save HEADER with wget and httpie 53# TODO Save HEADER with wget and httpie
54# TODO codebase statistics, like C++ or something 54# TODO codebase statistics, like C++ or something
@@ -62,6 +62,7 @@ CONFIG=~/.config/gist.conf; mkdir -p ~/.config
62per_page=100 62per_page=100
63 63
64INDEX_FORMAT=('index' 'public' 'gist_id' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description') 64INDEX_FORMAT=('index' 'public' 'gist_id' 'tags_string' 'blob_code' 'file_array' 'file_num' 'comment_num' 'author' 'created_at' 'updated_at' 'description')
65VALID_CONFIGS=('user=' 'token=' 'folder=' 'auto_sync=true|false' 'action=' 'EDITOR=' 'protocol=https|ssh' 'show_untagged=true|false')
65TAG_CHAR='-_[:alnum:]' 66TAG_CHAR='-_[:alnum:]'
66if [[ ! -t 0 ]]; then 67if [[ ! -t 0 ]]; then
67 INPUT=$(cat) 68 INPUT=$(cat)
@@ -70,8 +71,6 @@ else
70 export mark=[^s] # By defaut, only process user's gists, not starred gist 71 export mark=[^s] # By defaut, only process user's gists, not starred gist
71fi 72fi
72 73
73VALID_CONFIGS=('user=' 'token=' 'folder=' 'auto_sync=true|false' 'action=' 'EDITOR=' 'protocol=https|ssh' 'show_untagged=true|false')
74
75# Default configuration 74# Default configuration
76[[ ! -t 1 && -z $hint ]] && hint=false 75[[ ! -t 1 && -z $hint ]] && hint=false
77protocol=https 76protocol=https