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
@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