2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Sublime Mergeをコマンドラインから開けるようにする

Last updated at Posted at 2019-04-10

Sublime Mergeというツールが爆速だと聞いたので、導入した時のメモです。

Sublime Text3のパッケージ内にsublコマンドがあるように、Sublime Mergeのパッケージ内にもsmergeコマンドがありました。

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

これをファイルに渡してあげると、Sublime Mergeが爆速で展開されます。

上記のコマンドが長いので、エイリアスを掛けて使うには、

ex).bash_profile
alias smerge='/Applications/Sublime\ Merge.app/Contents/SharedSupport/bin/smerge'

と書いてあげて、

$ cd (SublimeMergeで開きたいディレクトリ)
$ smerge .

これで爆速展開。便利ですね。

参考

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?