Skip to content

Instantly share code, notes, and snippets.

@simple
Forked from rustle/gist:4115414
Created July 11, 2013 14:24
Show Gist options
  • Save simple/5975902 to your computer and use it in GitHub Desktop.
Save simple/5975902 to your computer and use it in GitHub Desktop.

SourceTree does not yet officially support Kaleidoscope 2, so here is how to set it up:

In Preferences, under Diff:

Screen Shot

You can try selecting Kaleidoscope, but we have had reports of mixed results. Some people have rebuilt their launch services database and restarted and been able to use Kaleidoscope this way:

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain use

Otherwise you can directly configure ksdiff for diffing:

Visual Diff Tool select Other with Diff Command

/usr/local/bin/ksdiff

and Arguments

-- "$LOCAL" "$REMOTE"

You'll need to set up merge as Other until SourceTree supports Kaleidoscope directly:

Merge Tool select Other with Merge Command

/usr/local/bin/ksdiff

and Arguments

--merge --output "$MERGED" --base "$BASE" -- "$LOCAL" "$REMOTE"

That's it, you should be clear to diff and merge away.

In testing, we found that sometimes SourceTree won't save edits to commands or arguments and that you may have to select a different tool then reselect Other to make the changes stick.

We've also found the Mac App Store version of SourceTree doesn't seem to call ksdiff at all when you're using the Other configuration. We'll update if we find more on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment