Defined DIFFPROG not valid for sudo

Then thats probably why.

~/.bashrc is only affecting your users bash prompt.

(and assuming you use bash at all)

Thats where I would put it too. No reason for this not to be global.

PS

Maybe you want to add some others there too. Like SUDO_EDITOR=/usr/bin/micro so you can use
sudoedit or sudo -e when you want to admin a file like a reasonable person. :slight_smile:

PPS

I thought there was an environment variable intro somewhere. Had to dig deep.

2 Likes