Skip to content

Instantly share code, notes, and snippets.

@jmvrbanac
Last active July 11, 2018 11:50
Show Gist options
  • Save jmvrbanac/5248151 to your computer and use it in GitHub Desktop.
Save jmvrbanac/5248151 to your computer and use it in GitHub Desktop.
Setting up p4merge and diff on Mac OSX
#!/bin/sh
[ $# -eq 7 ] && /usr/local/bin/p4merge "$2" "$PWD/$5"
#!/bin/sh
/Applications/p4merge.app/Contents/MacOS/p4merge $*
# Other Stuff
[merge]
tool = p4merge
keepBackup = false
[mergetool "p4merge"]
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
external = p4diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment