You are not logged in.

#1 2012-11-29 23:11:28

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

[SOLVED] Escape sequences instead of colors in rxvt-unicode

On a Git cheat sheet I found that I could add nice colors to Git's output, so I edited my ~/.gitconfig by adding:

[color]
    ui = auto
[color "branch"]
    current = yellow reverse
    local = yellow
    remote = green
[color "diff"]
    meta = yellow bold
    frag = magenta bold
    old = red bold
    new = green bold
[color "status"]
    added = yellow
    changed = green
    untracked = cyan

However, when performing a git log my terminal looks like this:

ESC[33mcommit 226dcb52565b58952b78fb107d8d9def3ca396abESC[m
Merge: 8f8af9f 93341d8
…

where ESC's colors are reversed. So, instead of yellow commit lines it outputs everything in plain text.

What's wrong with my configuration? I am using rxvt-unicode 9.15-3.

Last edited by Marcel- (2012-12-06 13:14:12)

Offline

#2 2012-12-06 13:14:01

Marcel-
Member
From: Utrecht, NL
Registered: 2006-12-03
Posts: 266

Re: [SOLVED] Escape sequences instead of colors in rxvt-unicode

Someone on the mailing list said that this was due to incorrect parameters to my pager, less. Adding -R to $LESS (or deleting the variable entirely) solved this issue.

Offline

Board footer

Powered by FluxBB