aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-04-08 14:18:28 +0800
committertypebrook <typebrook@gmail.com>2020-04-08 14:18:28 +0800
commit039ec62e65224bae703f57d31bb6557fa4d7d4a1 (patch)
tree82191b944a52b86f8c7121c52819dc72ad304567
parenta3225f170749e09b8986fe8d2862d06ca59dabed (diff)
Make 'gist grep' works with pattern like ^ or $
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 74a4b40..78cc247 100755
--- a/gist
+++ b/gist
@@ -350,7 +350,7 @@ _grep_content() {
350 && hint=false mark="$index " _show_list \ 350 && hint=false mark="$index " _show_list \
351 && echo -e " $file$content" 351 && echo -e " $file$content"
352 fi 352 fi
353 done | grep --color=always -Ei -C1 "$1" 353 done
354} 354}
355 355
356# Parse JSON object of the result of gist fetch 356# Parse JSON object of the result of gist fetch