Zsh adds powerful completion, spelling correction, and a rich plugin system.
Oh‑My‑Zsh bundles themes and plugins, turning a plain terminal into a personalized workspace.
Page
Oh-my-zsh - the Fancy terminal
Quick start checklist
Install Zsh
Set Zsh as the default shell
Install Oh‑My‑Zsh
(Optional) Install Powerline fonts for better theme rendering
Verify the setup
1. Install Zsh
Choose the command that matches your Linux distribution.
| Distribution | Install command |
|---|---|
| Ubuntu / Debian | sudo apt update && sudo apt install -y zsh |
| Fedora | sudo dnf install -y zsh |
| Arch Linux | sudo pacman -S --noconfirm zsh |
| openSUSE | sudo zypper install -y zsh |
| Alpine | sudo apk add zsh |
Tip
If Zsh is already present (zsh --version), you can skip this step.
2. Set Zsh as the default shell
# Find the full path to zsh
ZSH_PATH=$(which zsh)
# Change the login shell for the current user
chsh -s "$ZSH_PATH"
Log out and log back in (or restart the terminal) for the change to take effect.
3. Install Oh‑My‑Zsh
The official installer works with both curl and wget.
# Using curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Using wget
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
The script will:
-
Clone the repository into
~/.oh-my-zsh. -
Back up any existing
~/.zshrc. -
Create a new
~/.zshrcwith the default theme (robbyrussell).
4. (Optional) Install Powerline fonts
Powerline‑compatible fonts improve the appearance of many themes.
# Ubuntu / Debian
sudo apt install -y fonts-powerline
# Fedora
sudo dnf install -y powerline-fonts
# Arch Linux
sudo pacman -S --noconfirm powerline-fonts
# openSUSE
sudo zypper install -y powerline-fonts
# Alpine
sudo apk add powerline-fonts
After installation, set your terminal emulator to use a Powerline font (e.g., Source Code Pro for Powerline).
5. Verify the installation
# Confirm Zsh version
zsh --version
# Show the active Oh‑My‑Zsh theme
echo $ZSH_THEME
Open a new terminal window; you should see the Oh‑My‑Zsh prompt with the default theme.
To change the theme, edit ~/.zshrc and modify the line:
ZSH_THEME="robbyrussell"
Replace "robbyrussell" with any theme name from ~/.oh-my-zsh/themes/,
then reload the configuration:
source ~/.zshrc
Enjoy a faster, prettier, and more productive command line!