If you are on bash shell and trying to switch to zsh shell (Z shell) all you need to do is type zsh on your bash prompt on Terminal on macOS.
Example:code2care@mac ~ % bash
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
bash-3.2$ zsh
code2care@mac ~ %

Switch from bash to zsh shell macOS Terminal
As you can see above, I was on the bash shell ($) before and typing zsh switched me to Z Shell (%)
✌️ Since macOS Catalina Zsh is the default shell, you might see "The default interactive shell is now zsh." message when you switch from zsh to bash.
More Posts related to MacOS,
- How to Display Analog Clock on Mac Menu Bar
- Shutdown Mac Terminal Command
- How to know the Serial Number of MacBook on macOS Ventura 13.0
- macOS: Remove Desktop or Documents Folder from iCloud Drive Syncing
- [fix] How to Show file extensions on all files on Mac
- How to install Zoom Add-in to Outlook (Mac)
- How to turn off Stage Manager - macOS Ventura
- Fix - Xode - Internal logic error: Connection was invalidated
- How to do calculations in Mac Terminal
- How to delete a Page in Microsoft Word File on Mac (macOS)
- How to Refresh Mac Desktop
- How to install Java on macOS [Big Sur]
- How to Disable Mac Terminal Bell Sound
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to Uninstall Brew on Mac
- Find your macOS version
- Change TextEdit File Encoding
- AppleScript Example with TextEdit
- How to install homebrew (brew) on M1 Mac
- How to Find File and Directory Size in Mac Terminal
- How to open new tab in Sublime Text Editor [macOS]
- How to list all users in Mac Terminal
- Turn off Auto-Capitalization on macOS Ventura 13
- How to check Command Line Tools Version [Updated for Ventura]
- Change Current User Password using Mac Terminal Command
More Posts:
- Change CKEditor Table Properties default width - CKEditor
- Iterate over an Array using Java 8 Stream and foreach - Java
- How to take a screenshot of android emulator (AVD) screen - Android
- Python: Replace the First Occurrence of String in a String - Python
- How to Change Mac Computer and Localhost Name using Terminal - MacOS
- How to Save Jupyter Notebook as PDF - Python
- How to Turn off "Terminal" would like to access files message on Mac? - MacOS
- Capitalize the first letter of each word using Notepad++ - NotepadPlusPlus