执行 ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" subl就可以在命令行用“subl .”来通过sublime打开当前目录详见官网 : https://www.sublimetext.com/docs/3/osx_command_line.html