Skip to content

Instantly share code, notes, and snippets.

@alecjacobson
Created August 7, 2025 18:37
Show Gist options
  • Save alecjacobson/0020bf26df046e3d75ea1fa55860cf44 to your computer and use it in GitHub Desktop.
Save alecjacobson/0020bf26df046e3d75ea1fa55860cf44 to your computer and use it in GitHub Desktop.
#!/bin/sh
# https://stackoverflow.com/questions/13719122/how-to-use-opendiff-as-default-mergetool/36841553#36841553
# https://apple.stackexchange.com/questions/476348/use-apples-filemerge-from-command-line-and-have-it-wait-instead-of-exiting-imme
file1=$(readlink -f "$1")
file2=$(readlink -f "$2")
open -a FileMerge -n -W --args -left "$file1" -right "$file2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment