Sublime Forum

Using Sublime in the terminal

#1

I’ve been trying to use sublime to write commit messages with git in the terminal. I have followed the documentation here in sublime but when putting in the first line of code to create the subl symlink link…

ln -s “/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl” ~/bin/subl

When I put this command in the terminal it gives me an error of

ln: /Users/ENG618-Mac/bin/subl: No such file or directory

0 Likes

#2

Depending on your unix/linux distro etc. the ~/bin directory may not exist, in which case you’ll need to create it first: mkdir ~/bin

Once that’s done the ln -s command should create the link. Again depending on your unix, ~/bin may not be in your path by default either, so you might need to add it to the path in your .bashrc file or whatever.

0 Likes

#3

Hi,

I added ~/bin to my path but I get this error message when I try to use it. Can you please give detail instruction on how to get it to work.

kapplej-2:omrails Home$ ln -s “/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl” ~/bin/subl
ln: /Users/Home/bin/subl: File exists
kapplej-2:omrails Home$ subl .gitignore
-bash: subl: command not found
kapplej-2:omrails Home$

Ken

0 Likes