Change the default shell in Terminal on macOS | Zsh or Bash shell

preview_player
Показать описание
How to change the default shell in Terminal on Mac OS

1. In the Terminal app on your Mac, type chsh -s $(which zsh) to change to zsh shell as default or chsh -s $(which bash) to change to bash shell. Close terminal app and open it again and verify that bash is your default shell.
2. Alternatively, we can do it on GUI too. Head to System Preferences, Users & Groups, right click on User and click Advanced Options, then choose the Login shell you want to use.

List available shells on macOS by typing cat /etc/shells in the terminal.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

Bash version on macOS is outdated by default
because of GNU General Public License. The current version of bash is bash-5.1 as of Aug 8, 2021.

#macOS #BashOrZsh
Рекомендации по теме
Комментарии
Автор

im trying to get rid of zsh notification and keep on using bash, do you have any tutorial for that?

lynllbacani
Автор

i still haven't solved the problem, can you help?

sefaakyuz