Skip to content

Instantly share code, notes, and snippets.

@andrewchee
Forked from trekdemo/shell
Created August 5, 2012 02:47
Show Gist options
  • Save andrewchee/3261240 to your computer and use it in GitHub Desktop.
Save andrewchee/3261240 to your computer and use it in GitHub Desktop.
Diff files selected in the TextMate drawer with Kaleidoscope
sudo ln -s /usr/local/bin/ksdiff /usr/bin/ksdiff
eval arr=("$TM_SELECTED_FILES")
if [[ ${#arr[@]} != 2 ]]; then
exit_show_tool_tip $'You need to select exactly two\nfiles in the project drawer.'
fi
eval ksdiff "$TM_SELECTED_FILES"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment