chsh
1. list the available shells in your machine
cat /etc/shellsYou may need to add the path to the new shell binary into this file
2. change default shell for current user
chsh -s /bin/bashchsh -s /usr/local/bin/fish3. change default shell for a user
chsh -s /bin/bash username-here
passwd file
modify the passwd file
macOS
1. change default shell via mac’s directory utility
open directory utility appclick on directory editorclick on your name (exp. Marcus Chiu)modify UserShell value