Files
Steve Nygard ca690c69d9 Simple script to show and colorize diffs of test output in Terminal.
opendiff on Lion takes at least 4 seconds, even for two small, trivial comparisons.  This
makes is useless for comparing large numbers of files.

Kaleidoscope keeps all the files open, and runs into file handle limits.

Both make key and order front the new windows, which make the computer unusable for other tasks
while running a script that calls opendiff/ksdiff repeatedly.

This uses colordiff from <http://colordiff.sourceforge.net/>
2011-07-31 19:10:10 -06:00

14 lines
149 B
Bash
Executable File

#!/bin/zsh
pushd /tmp/cdt/new
foreach i (*.txt)
echo -e "\\033[32m"
echo $i
echo -e "\\033[0m"
diff ../old/$i $i | colordiff.pl
echo
echo
echo
end