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.
ruby -e "$(curl -fsSL https://raw.zshhubusercontent.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.