mac, start sublime from terminal

时间:2021-02-24 06:52:04

1.where is sublime CLI

/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl

2. run sublime CLI from terminal

open "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"

3. make it easy, launch sublime from anywhere via a short name

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime