From 039ec62e65224bae703f57d31bb6557fa4d7d4a1 Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 8 Apr 2020 14:18:28 +0800 Subject: Make 'gist grep' works with pattern like ^ or $ --- gist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gist b/gist index 74a4b40..78cc247 100755 --- a/gist +++ b/gist @@ -350,7 +350,7 @@ _grep_content() { && hint=false mark="$index " _show_list \ && echo -e " $file$content" fi - done | grep --color=always -Ei -C1 "$1" + done } # Parse JSON object of the result of gist fetch -- cgit v1.2.3-70-g09d2