From the course: Learning Zsh

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using Zsh as your primary shell

Using Zsh as your primary shell - Unix Tutorial

From the course: Learning Zsh

Start my 1-month free trial

Using Zsh as your primary shell

- [Instructor] Most Linux systems, many Unix systems, and versions of Mac OS prior to 10.15 use Bash as their primary shell. Once a Z shell is installed, as we saw before, we can open it up in a terminal window by typing zsh, and this is a fine way to run Z shell. But it's running inside of my default shell, and I'd rather not have to move into Z shell when I want to use it. So let's set it as the default shell instead. There are few ways to make that happen. First, I'll exit out of this Z shell instance (keyboard typing) and back to my current shell. To set Z shell as the default shell, we'll need to know where it's located on the system, and for that, we can use the command (keyboard typing) which zsh. Here on my system, I can see it's located at /usr/bin/zsh. Depending on your system, what you see here may be different. To change the shell, we can use (keyboard typing) the chsh command, and that can be done in two…

Contents