Sublime Text 2 command line not working after Mavericks install

妖精的绣舞 提交于 2019-12-01 11:20:07

There are a couple of things wrong with that blog post. First, the symlink is pointing to the wrong target if you're using Sublime Text 2. It should be

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

as the application's name is Sublime Text 2.app. Sublime 3 is named Sublime Text.app. Make sure you run

sudo rm /usr/local/bin/subl

to delete the old (incorrect) symlink before making the new one.

Next, there is an invalid character in the export PATH command. It should be

export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH

without the character at the end.

Make these changes, exit Terminal and restart, and you should be able to run subl . to open a folder, or subl filename to open individual files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!