diff options
| author | typebrook <typebrook@gmail.com> | 2020-04-08 14:18:28 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-04-08 14:18:28 +0800 |
| commit | 039ec62e65224bae703f57d31bb6557fa4d7d4a1 (patch) | |
| tree | 82191b944a52b86f8c7121c52819dc72ad304567 | |
| parent | a3225f170749e09b8986fe8d2862d06ca59dabed (diff) | |
Make 'gist grep' works with pattern like ^ or $
| -rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 |