diff options
Diffstat (limited to 'share/functions/grep.fish')
-rw-r--r-- | share/functions/grep.fish | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/functions/grep.fish b/share/functions/grep.fish new file mode 100644 index 00000000..212fe3ca --- /dev/null +++ b/share/functions/grep.fish @@ -0,0 +1,13 @@ +# +# Match colors for grep, if supported +# + +if grep --color=auto --help 1>/dev/null 2>/dev/null + if not set -q GREP_COLOR + set -gx GREP_COLOR '97;45' + end + if not set -q GREP_OPTIONS + set -gx GREP_OPTIONS '97;45' + end +end + |