Open Sublime Text from Terminal in macOS
问题 In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 回答1: I finally got this to work on my OSX box. I used these steps to get it to work: Test subl from your ST installation: First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.app in the command