Linux, plaintext & minimalism

Notice: This blog have moved to hunden.linuxkompis.se. Read more about it here: My blog have a new home and a new address.

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:


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


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


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).