Avatar
Linux, plaintext & minimalism
December 2, 2019

How to use colordiff with etc-update in Gentoo

If you’re using Gentoo you’re probably annoyed with how hard it is to find the relevant part of the diff-output from etc-update.

This is how the default output looks like:

/img/etc-update-diff.png

And this is what it can look like if you replace diff with colordiff:

/img/etc-update-colordiff.png

First make sure that you have the package app-misc/colordiff installed and then replace the following line in the file /etc/etc-update.conf:

diff_command="diff -uN %file1 %file2"

With this line:

diff_command="colordiff -uN %file1 %file2"

And you’re done.

Tags: Gentoo | diff | colordiff

Feedback

I don't have a commenting system simply because I haven't found a solution that I like. If you want to leave any feedback and/or have any questions, feel free to contact me either via e-mail, fediverse, XMPP or IRC (I'm Hund at freenode.net).