How to set my default shell on Mac?

前端 未结 16 914
抹茶落季
抹茶落季 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:16

    The only thing that worked for me was a combination of all these methods.

    1. First I had to add fish to the /etc/shells file

    2. Then I ran chsh -s /usr/local/bin/fish

    3. Finally, I typed Command+, and added /usr/local/bin/fish to the default path there

    Only after I had done all three things did fish start popping up as the default for new terminal windows.

提交回复
热议问题