The Default Interactive Shell Is Now Zsh: How to Remove It on Mac?
macOS default shell switched to Zsh: Complete Guide
When starting your Mac, it may be surprising to see a prompt to switch the default interactive shell from Bash to Zsh. However, this is just one way Apple adapts and develops, aiming to provide users with a better shell experience.
The advantage of macOS is that users do not have to be limited to any particular shell. Whether you are a big fan of Bash or are interested in Zsh, the choice is always in your hands.
This guide will provide you with a clear explanation. We will explain step by step the reason behind this change and, more importantly, we will guide you on how to do so that you can choose the shell with confidence.
The meaning of "default interactive shell is now Zsh"
Warning message "Default interactive shell is now Zsh" indicates that macOS's Terminal has switched from Bash to Zsh. If you don't use Terminal often, don't worry. But for the average user, while this is a noteworthy shift, it hardly changes how you typically interact in Terminal.
Why does this warning message appear?
This warning message is to remind you of the underlying changes in macOS. The main reasons for this warning are as follows:
- Transition from Bash to Zsh: Apple decided to switch the default Unix shell in its Terminal from Bash to Zsh. This change enhances security and provides updated features such as interactive autocomplete, theme-friendly prompts, and path extensions.
- User Perception: It ensures that ordinary Terminal users understand the system's default settings, even if the overall user experience remains basically the same.
- Software Consistency: As the software continues to evolve, such notifications help bridge the gap between the old and current versions.
Is Zsh good for your Mac?
Zsh (also known as Z shell) was built on Bash, which was once the preferred shell for macOS. Given its rich functionality, using Zsh instead of Bash is usually the best choice. To further enhance the experience, we recommend that you introduce a framework for Zsh that customizes how you handle settings, plugins, and appealing themes.
What to do after seeing the message "Default interactive shell is now Zsh"
For some Mac users, encountering this message can be confusing. But, don't worry. Next, we will guide you the steps you can take after seeing this message:
- How to switch from Zsh to Bash
- How to switch to Bash using Homebrew
- How to hide the "default interactive shell is now Zsh" and continue using Bash
How to switch from Zsh to Bash
Luckily, switching between Zsh and Bash is very simple. To switch from Zsh to Bash, type chsh -s /bin/bash
in your Terminal. After restarting, the new session will use Bash by default.
The following are the steps to change Zsh to Bash:
- Open the Apple Menu and select System Preferences.
- Navigate to "Users and Groups".
- Right-click on your username and select Advanced Options.
- If prompted, please enter your password and confirm.
- Find the "Login shell" drop-down menu and select
/bin/bash
. - Press OK and turn off System Preferences.
How to switch to Bash using Homebrew
To switch to a new shell (such as Bin/Bash), add its name to the shell file and save it. This step ensures that your computer knows that you can use the shell. You can think of it as a safety net to prevent you from accidentally selecting content that may cause problems.
The following are detailed instructions for switching Zsh to Bash using Homebrew:
- Start Terminal.
- Enter
xcode-select --install
and press Enter. When prompted, click Install and wait patiently for the process to complete. - To start the Homebrew installation, enter
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
and press Enter. This may take some time, please wait. - If you receive a warning
/opt/homebrew/bin
is not in your PATH, please copy its recommended commands and paste them into Terminal as recommended by Homebrew. Use Enter to confirm. - Finally, run
brew update && brew install bash && sudo chsh -s /usr/local/bin/bash $(whoami)
to update and build your new Bash shell.
Using Homebrew (the popular package manager for macOS), you can easily install newer versions of bash and set it as your default shell.
How to hide the "default interactive shell is now Zsh" and continue using Bash
For those who appreciate Zsh's advanced features but are still loyal to Bash, there is a way to mute the default shell notifications. After integrating a specific code snippet (export BASH_SILENCE_DEPRECATION_WARNING=1
) into a configuration file (e.g. ~/.bash_profile
, ~/.profile
, or ~/.bashrc
), you can easily use Bash instead of Zsh on your Mac.
The following are the steps to cancel the warning and continue using Bash in logical order:
- Start Terminal on your Mac.
- To mute the notification, type and execute the following command:
touch ~/.bash_profile && echo "export BASH_SILENCE_DEPRECATION_WARNING=1" >> ~/.bash_profile
. - If the warning still exists, you may need to adjust another configuration file. Simply replace
~/.bash_profile
with~/.profile
or~/.bashrc
in the command and run it again.
Summary
Switching between Zsh and Bash can feel a little overwhelmed at first. So our team explores how to mute annoying notifications and makes some tweaks to adopt the shell of your choice.
However, there are more broad aspects here. In addition to updates and settings, it is important to keep your Mac continuously maintained. This is where MacKeeper's memory cleaner comes into play. By managing your Mac's memory and saying goodbye to time-consuming processes, you can not only fix the issues, but also prevent new issues.
If you find this guide helpful, don't forget to check out our other expert guide on Zsh denied permission on Mac and checking the health of SSD on Mac for more insights and solutions.
The above is the detailed content of The Default Interactive Shell Is Now Zsh: How to Remove It on Mac?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











After upgrading to the latest macOS, does the Mac run slower? Don't worry, you are not alone! This article will share my experience in solving slow Mac running problems after upgrading to macOS Sequoia. After the upgrade, I can’t wait to experience new features such as recording and transcription of voice notes and improved trail map planning capabilities. But after installation, my Mac started running slowly. Causes and solutions for slow Mac running after macOS update Here is my summary of my experience, I hope it can help you solve the problem of slow Mac running after macOS Sequoia update: Cause of the problem Solution Performance issues Using Novabe

This guide explains how to convert between Live Photos, videos, and GIFs on iPhones and Macs. Modern iPhones excel at image processing, but managing different media formats can be tricky. This tutorial provides solutions for various conversions, al

macOS WindowServer: Understanding High CPU Usage and Solutions Have you noticed WindowServer consuming significant CPU resources on your Mac? This process is crucial for your Mac's graphical interface, rendering everything you see on screen. High C

You can’t really use the internet nowadays without encountering the hashtag symbol that looks like this — #. Popularized on a global scale by Twitter as a way to define common tweet themes and later adopted by Instagram and other apps to c

You might need to repair your Mac disk if your computer won’t start up, apps keep freezing, you can’t open certain documents, or the performance has slowed to a halt. Luckily, Apple includes a handy tool you can use to

With a market share of over 65.7%, Google Chrome is the biggest web browser in the world. You can use it if you use other operating systems like Windows and Android, but many Mac users also prefer Chrome over Safari. Mo

Managing Mac storage: A comprehensive guide to deleting files Daily Mac usage involves installing apps, creating files, and downloading data. However, even high-end Macs have limited storage. This guide provides various methods for deleting unneces

From the dawn of time to just about a few years ago, all of us sported a pair of wired headphones and were convinced that this is simply how it will be done forever. After all, they are the easiest technology around: just plug them in, put them
