Mac命令行启动Sublime Text

找到Sublime executable file路径

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

创建Sublime subl的软链

$ ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' /usr/local/bin/subl

命令行使用

$ subl my_folder
$ subl my_folder/temp.txt

你可能感兴趣的:(Mac命令行启动Sublime Text)