Linux: install Zsh and set it as the default shell
Install Zsh on Arch Linux with pacman and set it as the login shell with chsh.
Zsh is a highly configurable interactive shell, an alternative to Bash. This memo shows how to install it on Arch Linux and make it the default shell; the reference guide is ZSH shell installation and configuration on Linux.
Installation
sudo pacman -S zsh
zsh --version
Set Zsh as the default shell
chsh -s /usr/bin/zsh
The change takes effect at the next login. On first launch, Zsh offers a configuration wizard that creates ~/.zshrc.
Notes
- On other distributions, use the matching package manager (
apt install zsh,dnf install zsh...). - The shell path must be listed in
/etc/shellsforchshto accept it.