You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Z shell (zsh) is a Unix shell [...]. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.
Some Linux systems come preloaded with zsh. You can check if it exists as well as its version by writing zsh --versionin a terminal window. In case this zsh version is ok for you, you're done now!
Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.
Debian-based linux systems
Open a terminal window. Copy & paste the following into the terminal window and hit Return. You may be prompted to enter your password.
OS X comes preloaded with zsh. You can check its version by writing zsh --versionin a terminal window. In case this zsh version is ok for you, you're done now!
If you want the latest and greatest, use Homebrew: Proceed with the following steps to install a recent version.
Copy & paste the following into the terminal window and hit Return.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
You will be requested to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.
Step 2 – Install zsh
Copy & paste the following into the terminal window and hit Return.
brew install zsh
You can use zsh now.
Optional step 3 – default shell
To set zsh as your default shell, execute the following.
Your brew executable is not in your $PATH. I can see that you tried to add it, but it seems like something didn't work. Also, whenever you adapt .zshrc, you need to evaluate it again using source ~/.zshrc or (better) start a new shell/terminal. Did you even have zsh installed at that point? Because you try to install it below.
Homebrew/brew couldn't download ncurses (which I think is required for zsh) because the SSL/TLS versions seem to mismatch. Make sure you have an up-to-date computer.
@vanessarowe Hm, it seems your system is a bit broken as well. The error message is not related to ZSH itself but to Oh my ZSH which is a plugin system for ZSH.
Because it complains about .oh-my-zsh missing in your home directory, I assume that you don't have Oh my ZSH installed but a reference to it in the ZSH config file .zshrc.
You could remove the Oh my ZSH reference from line 75 of .zshrc in your home directory and try again.
@DanielMarinBeltran your system seems quite mess up.
brew
executable is not in your$PATH
. I can see that you tried to add it, but it seems like something didn't work. Also, whenever you adapt.zshrc
, you need to evaluate it again usingsource ~/.zshrc
or (better) start a new shell/terminal. Did you even have zsh installed at that point? Because you try to install it below.brew
couldn't downloadncurses
(which I think is required for zsh) because the SSL/TLS versions seem to mismatch. Make sure you have an up-to-date computer.