Waymond
Waymond

Reputation: 257

Sublime Text 2 - OS X Command Line problems

I'm going through some Ruby tutorials and trying to get Sublime Text 2 setup in the command line in OSX. I have made

mkdir ~/bin

and then typed in my command line

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

and then entered

export PATH="$PATH:~/bin"

Also, in SB2, I saved

.bash_profile 

in ~/bin

So when I type

 subl --help

I get

-bash: subl: command not found

I've been stuck on this for a while and need help. I checked some similar threads and ran through those directions but I'm stumped and feeling noobish than ever. Any help is appreciated. Thanks.

PS. I'm using Mavericks.

Upvotes: 1

Views: 441

Answers (1)

bajocode
bajocode

Reputation: 360

This should work for mavericks:

$ > printenv | grep bin

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

Create the symbolic link:

$ sudo ln -sf "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/bin/subl

Upvotes: 1

Related Questions