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,
- Opening mac Terminal
- How to change default macOS Terminal Window size
- How to clear Mac Terminal screen
- Find Hostname of Mac running on macOS Ventura 13
- Installing MongoDB on Linux/Unix/macOS/Ubuntu
- How to switch from bash to zsh shell in macOS Terminal
- Limit scrollback rows in macOS Terminal
- How to Set Background Wallpaper on macOS 13 Ventura
- This operation couldnt be completed. Unable to locate a Java Runtime. [macOS]
- Encode or Decode Base64 String using Mac Terminal Command
- List of All Apple Silicon ARM Based M1/M2 Mac [updated Oct 2022)
- How to remove Siri from Menu Bar [macOS Big Sur]
- Must Know Homebrew Commands for Mac/Linux Users
- Hide Keyboard Text Input Icon on macOS Ventura Menu Bar
- 13.0 MacOS Ventura release date
- How to change the default location of Mac Screenshot
- How to set Out Of Office (OOO) on Outlook for Mac
- 30+ Zoom video communications application shortcuts for macOS
- How to install wget on macOS
- Mac turn dark mode on or off using terminal command
- Create Symbolic Link using Terminal Command
- Mac - How to Install VirtualBox
- How to Enable or Disable Dark Mode on macOS Ventura 13
- How to install homebrew (brew) on M1 Mac
- How to uninstall Microsoft Outlook on Mac
More Posts:
- How to uninstall pip Python packages - Python
- Center Align TextView Android Horizontally or Vertically - Android
- Java Stream flatmap() Examples - Java
- How to remove old 404 pages ulrs from Google crawler - Html
- Clear SFTP Prompt Screen on macOS Terminal - MacOS
- Convert Java Object to JSON using Jackson Library - Java
- Calculate Volume of Sphere - C-Program
- How to clear MySQL Console Screen - MySQL