Displays images as well as text diffs, even over SSH

Does syntax highlighting of the displayed diffs, asynchronously, for maximum speed

Simply install kitty . You also need to have either the git program or the diff program installed. Additionally, for syntax highlighting to work, pygments must be installed (note that pygments is included in the macOS kitty app).

In the kitty terminal, run:

kitty +kitten diff file1 file2

to see the diff between file1 and file2.

Create an alias in your shell’s startup file to shorten the command, for example:

alias d = "kitty +kitten diff"

Now all you need to do to diff two files is:

d file1 file2

You can also pass directories instead of files to see the recursive diff of the directory contents.