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:


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 an ethical option that I like. If you want to leave any feedback and/or have any questions, feel free to contact me via e-mail, the fediverse or via IRC (I'm Hund at freenode).