Connor Black
Connor Black

Reputation: 7181

Sublime Text 2 and Terminal

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.

Upvotes: 3

Views: 5075

Answers (1)

yfrancis
yfrancis

Reputation: 2616

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

Upvotes: 7

Related Questions