sr320 / course-fish546-2016

6 stars 5 forks source link

no such file or dir exists error ?? #16

Closed sr320 closed 8 years ago

sr320 commented 8 years ago

via quiz


I tried to make a file with Sublime 2 from the terminal using the CLI (command line interface) subl I was unsuccessful. I tried to make a symlink to subl using the instructions here but when I ran

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

I just got a 'no such file or dir exists error'. I didn't try too hard though, so will make another attempt


I am curious about several aspects of this (lets go over in class)...

But my first guess regarding a reason for the error is ....

Spaces in path

MeganEDuffy commented 8 years ago

With some help from a Stack Overflow posting, I found out that I didn't actually have a ~/bin directory in my path when I tried to create the Sublime symlink. Once I did that (mkdir ~/bin) I could run the same code as before successfully! Now I can open files in my desired text editor from Terminal.