Subl command not working - command not found

前端 未结 13 605
别那么骄傲
别那么骄傲 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:44

    I tried several combinations using sudo and also including or excluding leading / and escaping spaces in the Sublime\ Text.app package.

    What worked to create the desired symlink was:

    ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
    

    I did not have to use sudo or modify $PATH.

    For reference, I am on Mac OS Mojave 10.14.

    echo $PATH currently (and without any modification by me) shows the following:

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

    You can tell if this worked by typing which subl immediately after running the ln command above. If you don't get a line of output showing you where Bash found your subl command then you don't have it.

提交回复
热议问题