Showing posts with label xterm. Show all posts
Showing posts with label xterm. Show all posts

git diff's ESC chars problem on xterm

First time using git diff on xterm, the displayed result showing ESC[ characters instead of colored line.




Found this after searching, and after checking less man pages i concluded that i only need -R options since i only want to clear ESC[ characters and colored diffs. So i add this line on my ~/.bashrc :

LESS="-R"; export LESS


and here is the result after re-login: