logging - How to get git log with color and paging on cygwin? -


i'd have colored git logs paging on cygwin.

i managed colored logs with

git log --color=always 

if do

git log --color=always | less 

i paging, color commands printed instead of interpreded

esc[33mcommit b4dbe28f459adf0df1784d3a597628cc27abf836esc[m author: ernst pluess <mail@address.com> date:   thu apr 18 13:23:07 2013 +0200      changed utf-8 

on osx box colors , paging default behaviour git log on shell. how can same cygwin on windows.

use

less -r 

instead of less pass color ansi control characters through terminal.

you can set less environment variable to

less=-r 

to make default behaviour.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -