BASH: Open FileMerge from CLI | Comments (2)
Posted in Snippets on 16th August 2007, 1:07 pm by Stuart
Here’s a quick tip. If you want to open FileMerge (Apples graphical diff utility available in developer tools) from the CLI you can use the command opendiff e.g: opendiff file1 file2 This save lots of hassle when you are trying to resolve versioning conflicts, as I always find it annoying trying to navigate to the right files from the gui.

So, whilst this should be an exercise for the reader, what we’d want is an alias to act like this:
bzrmerge path/to/file.exAutomatically open FileMerge and fill in the .THIS, .OTHER and .BASE files for us.
Must. Learn. Bash.
That would be pretty easy; add to .bashrc:
remember to
source ~/.bashrcfor changes to take effect.