1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOSシステム設定:デフォルトシェルを Bash にする

Posted at

まだ、bash が使いたい人向け

  • 現在のシェルを確認
    % echo $SHELL
/bin/zsh
  • 使用可能なシェルを確認
    % cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
  • デフォルトシェルを bash に変更
    % chsh -s /bin/bash

新しくログインすると確認できるよ。

-「The default interactive shell is now zsh.」のメッセージを消す
$ echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile

1
0
0

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
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?