chsh

The command that changes your login shell to another program listed in /etc/shells.

In more detail

After installing a newer bash with Homebrew you add its path to /etc/shells and then run chsh -s with that path. The change applies to new logins, not to the terminal you are already in.

Example

chsh -s /opt/homebrew/bin/bash

Related terms

Taught in

References

Certification courses