Created
February 29, 2016 17:21
-
-
Save nascimento/9c60db947ea21a8140a8 to your computer and use it in GitHub Desktop.
Git diff alias for git in macosx using Meld and Opendiff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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