Sublime Forum

Smerge--where?

#1

I have fetched the zip file for Sublime Merge and indeed have the GUI application. The website mentions a command line tool “smerge” It wasn’t installed on my system. Where do I get it? What location is it installed in?

What I downloaded from the website was “sublime_merge_build_1079_mac.zip”

2 Likes

#2

It’s inside of Sublime Merge.app/Contents/Shared Support/bin. It’s not installed by default; you need to either symlink it to a location on your path or add that location to your $PATH environment variable.

The steps for this are the same as for Sublime Text, except that the app is named Sublime Merge.app instead of Sublime Text.app and the command line program is smerge and not subl.

4 Likes

Open Sublime Merge From Sublime Text
#3

Many thanks. It works as expected.

0 Likes

#4

This instruction really helped me. Thanks!

Note on macOS, there isn’t a space in the Shared Support part of the path. Here’s the full path:

/Applications/Sublime Merge.app/Contents/SharedSupport/bin

To add to your path (again on macOS), pop this line into your ~/.bash_profile file:

export PATH=$PATH:/Applications/Sublime\ Merge.app/Contents/SharedSupport/bin

0 Likes

Is there a way to diff two non-repo files?
#5

Note, command line documentation is now found here: https://www.sublimemerge.com/docs/command_line

1 Like