Subl command not working - command not found

前端 未结 13 475
别那么骄傲
别那么骄傲 2021-01-30 05:11

I\'m having difficulty getting this set up. I fixed my .bash_profile, and created the symlink using the following command from the Sublime website:

         


        
13条回答
  •  囚心锁ツ
    2021-01-30 05:57

    I'm documenting this because it worked on my machine and might fix the problem for people who see "file already exists` when they run the command suggested in sarbbottam's answer. I'm not sure I can fully explain it so I may use the wrong terms.

    When I copy/pasted sarbbottam's command, my terminal reported that the file already existed. I tried copy/pasting several Stack Overflow answers to this problem into my terminal, so I had symlinks called subl and sublime in my /usr/local/bin directory. I could see the file when I listed all files in that directory with ls -a. I tried to open the subl directory in a text editor, and it said that the file didn't exist.

    I deleted the subl symlink in /usr/local/bin, ran the command, and it worked.

    I think I accidentally made one for Sublime Text 2 or something, and just figured I'd be overwriting the last one which was not the case.

提交回复
热议问题