いつからかは分からないが、最近の macOS の /usr/bin/diff は色をつけるオプションが生えた。 記憶が曖昧だが過去のバージョンではこのオプションはなかった気がする。 使い方は簡単。 --color オプションをつけること。 下は macOS (Ventura 13.5.2) の diff の man ページから引っ張ってきたもの。 --color=[when] Color the additions green, and removals red, or the value in the DIFFCOLORS environment variable. The possible…