aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-03-16 17:07:21 +0800
committertypebrook <typebrook@gmail.com>2020-03-16 17:47:40 +0800
commitf9e0764e889430adafa93ca78a775b43a2cb5d29 (patch)
tree0686197a5b0a21dd95af1b6f037e7b96eada3929
parent54600dfdb86d5754ec6fa827438c97734ce195cf (diff)
Add item for grep option
-rwxr-xr-xgist1
1 files changed, 1 insertions, 0 deletions
diff --git a/gist b/gist
index 6524bf0..6b40d5b 100755
--- a/gist
+++ b/gist
@@ -279,6 +279,7 @@ _show_list() {
279} 279}
280 280
281# TODO support filenames, file contents 281# TODO support filenames, file contents
282# TODO add option to configure case-sensitive
282_grep_content() { 283_grep_content() {
283 if [[ -z $1 ]]; then echo 'Please give a pattern' && return 1; fi 284 if [[ -z $1 ]]; then echo 'Please give a pattern' && return 1; fi
284 while read -r index url _ _ _ _ _ _ description; do 285 while read -r index url _ _ _ _ _ _ description; do