Skip to content

Instantly share code, notes, and snippets.

@trivektor
Forked from p1nox/using_meld_on_mac.md
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trivektor/8dceb25a060286ae9f8c to your computer and use it in GitHub Desktop.
Save trivektor/8dceb25a060286ae9f8c to your computer and use it in GitHub Desktop.

Using Meld merging tool on Mac

  1. Install XQuartz

  2. Install meld with brew

     brew install meld
    
  3. Copy PYTHONPATH

     brew info pygtk
    
  4. Paste result of (3) in ~/.bashrc or ~/.zshrc

     export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
    
  5. Set meld as your default git mergetool

     git config --global merge.tool meld
    
  6. Go find your conflicts!

Source: Homebrew/legacy-homebrew#20644

UPDATE (03/14/2015):

For those who have problems in newer versions Homebrew/legacy-homebrew#36824

If you try:

$ brew install meld
Error: No available formula for meld 
Searching formulae...
Searching taps...`

Instead try:

$ brew install homebrew/x11/meld

Alternative method (by @yousseb)

If you want to install Meld with no hassle go to: https://github.com/yousseb/meld/releases/tag/osx-v1

  • An actual DMG file that you can install right away.
  • No X required.
  • Key mapping is Mac(ish).
  • Used Clearlooks + Tango icon theme in the app so that it looks nice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment