On 2007.06.29 01:42:22 -0700, Josh Triplett wrote: > Jan Engelhardt wrote: > > On Jun 29 2007 00:53, Josh Triplett wrote: > >> And if you really want highlighting, you can always use grep --color. :) > > > > Been there, done that, have GREP_COLOR env variable defined! > > Same here. Now I just need to convince git-grep to use it. You need to convince grep. When piping its output to less, it won't colorize unless forced. Always forcing color via GREP_OPTIONS might break certain use-cases, and git-grep doesn't allow to pass options. So for me, a bash alias it is: alias gg='GREP_OPTIONS=--color=always git-grep' You might need to set LESS=-R in addition to that, to stop less from stripping the color codes. Björn - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [OT] Vim highlighting for trailing spaces
- From: "Dave Young" <[email protected]>
- Re: [OT] Vim highlighting for trailing spaces
- References:
- Re: [PATCH] CodingStyle: Add information about trailing whitespace.
- From: Josh Triplett <[email protected]>
- RE: [PATCH] CodingStyle: Add information about trailing whitespace.
- From: "Li Yang-r58472" <[email protected]>
- Re: [PATCH] CodingStyle: Add information about trailing whitespace.
- From: "Dave Young" <[email protected]>
- Re: [PATCH] CodingStyle: Add information about trailing whitespace.
- From: "Dave Young" <[email protected]>
- [OT] Vim highlighting for trailing spaces
- From: Kyle Moffett <[email protected]>
- Re: [OT] Vim highlighting for trailing spaces
- From: Jan Engelhardt <[email protected]>
- Re: [OT] Vim highlighting for trailing spaces
- From: Josh Triplett <[email protected]>
- Re: [OT] Vim highlighting for trailing spaces
- From: Jan Engelhardt <[email protected]>
- Re: [OT] Vim highlighting for trailing spaces
- From: Josh Triplett <[email protected]>
- Re: [PATCH] CodingStyle: Add information about trailing whitespace.
- Prev by Date: Re: Fwd: Mounting MMC card
- Next by Date: RE: [PATCH 1/5 v2] Add the explanation and a sample of RapidIO DTS sector to the document of booting-without-of.txt file.
- Previous by thread: Re: [OT] Vim highlighting for trailing spaces
- Next by thread: Re: [OT] Vim highlighting for trailing spaces
- Index(es):