Skip to content

Instantly share code, notes, and snippets.

@nascimento
Created February 29, 2016 17:21
Show Gist options
  • Save nascimento/9c60db947ea21a8140a8 to your computer and use it in GitHub Desktop.
Save nascimento/9c60db947ea21a8140a8 to your computer and use it in GitHub Desktop.
Git diff alias for git in macosx using Meld and Opendiff
#!/bin/bash
echo "Opening Modified file: ($5) -> ($2)"
os_name=`uname -s`
case $os_name in
Darwin) opendiff "$2" "$5" > /dev/null 2>&1
;;
*) meld "$2" "$5" > /dev/null 2>&1
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment