Re: odd behavior with export LESS=i

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

 



Heya,

On Tue, Jul 14, 2009 at 10:18, E R<pc88mxer@xxxxxxxxx> wrote:
> export LESS
> LESS=i git log
>
> then I see things like ESC[33m instead of colored text.

That's because (as you could read in less'
way-too-long-for-a-damn-pager man page), you did not specify the magic
"-R" make-everything-work-like-it-should option, which turns on the
display of escape sequences (which are used to color your terminal).


> If I run:
>
> unset LESS
> git log
>
> then I get colored text.

That's because if not set, git default to setting LESS to -FXRS (which
includes the -R option). Solution is to either not set LESS, or to
include -R if that's indeed what you want.

-- 
Cheers,

Sverre Rabbelier
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]