Run the following command to set the new shell and it’ll ask you for a password. Enter the password, press enter, and logout. When you log back in, the shell should be changed.

chsh -s /bin/zsh
# chsh -s /bin/bash