Subl command not working - command not found

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

    Create the symlink in /usr/local/bin instead of ~/bin and make sure that /usr/local/bin in in PATH.

    $ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/.
    $ echo $PATH
    

    If you don't find /usr/local/bin/, then add the following lines to your .bashrc or .zshrc:

    PATH=$PATH:/usr/local/bin/; export PATH
    

提交回复
热议问题