How to set my default shell on Mac?

前端 未结 16 948
抹茶落季
抹茶落季 2020-11-30 16:23

I do not like to retype fish every time I start terminal. I want fish on by default. How can I set fish shell as my default shell on a Mac?

16条回答
  •  暖寄归人
    2020-11-30 17:02

    From Terminal:

    1. Add Fish to /etc/shells, which will require an administrative password:

      sudo echo /usr/local/bin/fish >> /etc/shells
      
    2. Make Fish your default shell with chsh:

      chsh -s /usr/local/bin/fish
      

    From System Preferences:

    1. User and Groups → ctrl-click on Current User → Advanced Options...

    2. Change Login shell to /usr/local/bin/fish

      login shell

    3. Press OK, log out and in again

提交回复
热议问题