3

I am trying to get the subl command work for Sublime Text 3 in the terminal.The problem I currently have is when I

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

It returns

ln: /usr/local/bin/subl: File exists
4

1 回答 1

11

如果您已经安装了 Sublime Text 2 并链接/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl/usr/local/bin/subl,您只需更改 ST3 的链接名称。尝试

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

反而。


如果您不想同时安装这两个版本,请键入sudo rm /usr/local/bin/subl然后尝试再次创建指向 ST3 的符号链接。

于 2013-07-18T20:37:53.363 回答