LoginSignup
47

More than 1 year has passed since last update.

posted at

updated at

Macでzshからbashへ戻す方法(Mojave, Catalina, Big Sur)

最近macOSをCatalinaにあげたらデフォルトがzsh(%)になっていたのでシンプルにbash($)に戻したい

結論

方法は以下の2パターン
ターミナルの環境設定から設定を変更
<追記>ターミナルからコマンド実行で設定を変更

手順1 (ターミナルの環境設定から設定を変更)

  1. ターミナルを開き、画面左上の「ターミナル」を開いて
    スクリーンショット 2020-01-22 11.26.40.png

  2. 「環境設定」を開いて
    スクリーンショット 2020-01-22 11.28.22.png

  3. 「一般」をクリック!
    スクリーンショット 2020-01-22 11.29.07.png

  4. 「開くシェル:」の「コマンド(完全パス)」にチェックして、さらにその下の入力フォームに/bin/bashを入力

/bin/bash

スクリーンショット 2020-01-22 11.29.57.png
5. ターミナルを再起動すると、、、bash($)に切り替わった!!!
スクリーンショット 2020-01-22 11.32.08.png

手順2 (<追記>ターミナルからコマンド実行で設定を変更)

$ chsh -s /bin/bash
$ echo $SHELL

以上です!

参考記事
https://qiita.com/chat-flip/items/a85df83eaa3c0805aea8
https://mac-ra.com/catalina-zsh/
https://note.com/noelrecords/n/ne3f886e531d6

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
47