bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [feature request] Colouring matches in --result=grep outputs


From: Shigio YAMAGUCHI
Subject: Re: [feature request] Colouring matches in --result=grep outputs
Date: Fri, 5 Jul 2013 14:11:54 +0900

On Thu, 04 Jul 2013 16:57:31 +0000
Jason Hood <address@hidden> wrote:

> works with -P, and allows environment variable GTAGSCOLOR for -C).

How about making new environment variable GLOBAL_OPTIONS instead of
GTAGSCOLOR? It is similar to GREP_OPTIONS of grep(1). You can use
it as follows.

        $ export GLOBAL_OPTIONS='--color'
        $ global -x main        # executed as 'global --color -x main'

It can be used for other uses.

        $ export GLOBAL_OPTIONS='--path-style=shorter --basic-regexp 
--ignore-case'

-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]