Skip to content

Instantly share code, notes, and snippets.

@samukasmk
Created November 13, 2014 19:05
Show Gist options
  • Save samukasmk/9c16733b0f26b2294b7b to your computer and use it in GitHub Desktop.
Save samukasmk/9c16733b0f26b2294b7b to your computer and use it in GitHub Desktop.
Example of my script for git diff.
#!/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