Subl command not working - command not found

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

    You could just add the following to the shell config file .bash_profile or .zshrc (Apple replaced bash with zsh as the default shell in macOS Catalina):

    alias subl="open -a /Applications/Sublime\ Text.app" 
    

    These are the steps to edit .zshrc and save the changes (press ESC and :wq! to save and exit):

    $ cd ~
    $ vim .zshrc
    $ source .zshrc
    

    To verify that it works, try the following and it should open up Sublime Text.

    $ subl .zshrc
    

提交回复
热议问题