mac subl execute the command line

In macOS Sierra10.12.6, this path should be

sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

(note: the official website that's wrong, https://www.sublimetext.com/docs/3/osx_command_line.html

 

Reference from the correct path:

https://stackoverflow.com/questions/32915464/sublime-symlink-disappeared-after-upgrading-to-el-capitan/32922520#32922520

Guess you like

Origin www.cnblogs.com/defoliate/p/11367212.html