Skip to content

Instantly share code, notes, and snippets.

@matagus
Created June 9, 2010 13:34
Show Gist options
  • Save matagus/431474 to your computer and use it in GitHub Desktop.
Save matagus/431474 to your computer and use it in GitHub Desktop.
colorize your hg output <3
[extensions]
# enable color extension
color =
# enable extdiff extension (Extended Diff)
hgext.extdiff =
[extdiff]
# configure extended diff to use colordiff (requires colordiff installed in your system)
cmd.cdiff = colordiff
opts.cdiff = -uprN
[color]
# configure colors for each possible hg status
status.modified = blue bold
status.added = green bold
status.removed = red bold
status.deleted = cyan bold
status.unknown = magenta bold
status.ignored = white bold
# and for hg diff output also
diff.diffline = bold
diff.extended = cyan bold
diff.file_a = red bold
diff.file_b = green bold
diff.hunk = magenta
diff.deleted = red
diff.inserted = green
diff.changed = white
diff.trailingwhitespace = bold red_background
[defaults]
# suppress noisy extdiff header message
cdiff = -q
Copy link

ghost commented Oct 14, 2015

Cool stuff man, thanks for sharing! :)

@valentecaio
Copy link

thank you!

@atsundwn
Copy link

atsundwn commented May 4, 2016

Exactly what I was looking for. Thanks.

@alveflo
Copy link

alveflo commented Sep 1, 2016

Sweet, thanks dude!

@anilwakade
Copy link

Cool, Thanks !

@rengaqck
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment