subl配置方法

https://segmentfault.com/q/1010000002675510

-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-s or --stay: Keep the application activated after closing the file
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit

subl 配置
https://segmentfault.com/q/1010000003848398
设置subl命令行:sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
成功。

sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl
报错:ln: /usr/bin/subl: Operation not permitted 。估计是权限问题,不建议改权限了。尼玛,改权限,做过大死。
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
报错:这句显然不对,~下有bin吗?求问大神。

sublimetext官网的说法:
https://www.sublimetext.com/docs/3/osx_command_line.html
The first task is to make a symlink to subl
. Assuming you've placed Sublime Text in the Applications folder, and that you have a ~/bin
directory in your path, you can run:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ps:注意人家说了,you have a ~/bin,要是木有,

你可能感兴趣的:(subl配置方法)