Sublime Forum

OS X Command Line for Sublime Merge

#1

Sublime Merge includes a command line tool, smerge. This can be used to open repositories in Sublime Merge.

It’s similar to subl

This will create a symbolic link:

ln -s "/Applications/Sublime Merge.app/Contents/SharedSupport/bin/smerge" /usr/local/bin/smerge

So next time you can simply run:

cd my_git_code_repository
smerge .
11 Likes

#2

Works great thank you :slight_smile:

1 Like

#3

It would be a very nice feature, installed by default or from a dropdown, so we can choose if we’d like to have it active.

This works perfect for me, thanks.

1 Like

#4

Thanks, this actually solves my problem here. Hopefully it’ll be on oh-my-zsh repo soon.

0 Likes

#5

Powershell:

Set-Alias smerge 'C:\Program Files\Sublime Merge\sublime_merge.exe'

0 Likes

#6

for Ubuntu it can be
ln -s /opt/sublime_merge/sublime_merge /usr/local/bin/smerge

1 Like