How to set my default shell on Mac?

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

    Terminal.app > Preferences > General > Shells open with: > /bin/fish

    1. Open your terminal and press command+, (comma). This will open a preferences window.
    2. The first tab is 'General'.
    3. Find 'Shells open with' setting and choose 2nd option which needs complete path to the shell.
    4. Paste the link to your fish command, which generally is /usr/local/bin/fish.

    See this screenshot where zsh is being set as default.

    I am using macOS Sierra. Also works in macOS Mojave.

提交回复
热议问题