Home Download Buy Blog Forum Support

Using Sublime in the terminal

Using Sublime in the terminal

Postby eng618 on Tue Jun 04, 2013 6:29 am

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
eng618
 
Posts: 1
Joined: Tue Jun 04, 2013 6:23 am

Re: Using Sublime in the terminal

Postby qgates on Thu Jun 06, 2013 5:18 pm

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.
qgates
 
Posts: 188
Joined: Mon Nov 05, 2012 4:33 pm

Re: Using Sublime in the terminal

Postby kapplej15 on Wed Jun 12, 2013 1:05 am

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
kapplej15
 
Posts: 1
Joined: Wed Jun 12, 2013 1:02 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 15 guests