Sublime Text 2 and Terminal

大兔子大兔子 提交于 2019-12-12 14:18:59

问题


So I'm trying to make it so that I can start Sublime Text 2 from the terminal through this command, given by the Sublime Text documentation:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

But for some reason this is not working. I get this error from my terminal:

ln: /Users/connorblack/bin/subl: No such file or directory

Can anyone help me with this?

Other details: I have SB2 in my Applications folder. I'm trying to do RoR development.


回答1:


Your problem is that you don't have a ~/bin directory, just do

mkdir ~/bin

And then retry the command, it should work

Note that to use subl from this folder you will still need to add it to your PATH, add this line to your .bashrc or .zshrc:

export PATH=$PATH:/Users/connorblack/bin


来源:https://stackoverflow.com/questions/13217243/sublime-text-2-and-terminal

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