Hund

How to use colordiff with etc-update in Gentoo

December 2, 2019

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.

Meta

No Comments

Use the e-mail form, if you wish to leave feedback for this post. Markdown is supported. [Terms of service]