Subl command not working - command not found

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

    This is what worked for me.

    First, make sure you are in home folder:

    cd ~
    

    Step 1: Remove the /Users/Ram/bin/subl directory by using following command line:

    rm -rf /Users/Ram/bin/subl
    

    Step 2: Create this folder again using following command line:

    mkdir /Users/Ram/bin/subl
    

    STEP 3: use the following command to create a symbolic link to sublime:

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

    (using sudo before this command overrides permission issues)

    Step 4: Now you can test if subl works:

    subl test.py
    

    This should open up sublime with new test.py file created.

提交回复
热议问题