Operations 4 min read

Boost Your Linux Productivity: Install zsh and Oh‑My‑zsh with Essential Plugins

This guide walks you through installing the Z shell (zsh) on Linux, adding the popular Oh‑My‑zsh framework, and configuring key plugins such as syntax highlighting, autosuggestions, and fzf to streamline command‑line work and improve productivity.

Liangxu Linux
Liangxu Linux
Liangxu Linux
Boost Your Linux Productivity: Install zsh and Oh‑My‑zsh with Essential Plugins

Introduction

zsh is a powerful shell compatible with bash, and many Linux distributions ship with bash as the default. This article provides a concise tutorial for installing zsh, adding the Oh‑My‑zsh framework, and enabling useful plugins to boost command‑line efficiency.

Installing zsh

Run the following command to install zsh via the APT package manager:

sudo apt-get install -y zsh

Installing Oh‑My‑zsh

Oh‑My‑zsh is a community‑driven framework that bundles many plugins and themes. Install it with a single command:

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

If the download fails with a connection‑refused error, you can:

Append --no-check-certificate to the wget command.

Install the ca-certificates package: apt-get install ca-certificates -y.

Or install ssl-cert via apt-get install ssl-cert.

Essential Plugins

The following plugins are recommended and can be added manually to the ~/.oh-my-zsh/plugins/ directory.

zsh‑syntax‑highlighting

Provides real‑time syntax highlighting and flags erroneous commands.

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

zsh‑autosuggestions

Shows command suggestions based on history as you type.

git clone https://github.com/zsh-users/zsh-autosuggestions

fzf (fuzzy finder)

Built into Oh‑My‑zsh, fzf enables rapid directory and file navigation; it works well together with autosuggestions.

Configuration

Edit ~/.zshrc to enable the plugins, for example:

plugins=(git zsh-syntax-highlighting zsh-autosuggestions)

Disable underlining of the prompt if desired (see the original screenshots for visual guidance).

Using zsh

Start a zsh session by typing zsh in any terminal. To exit, type exit.

Conclusion

Installing Oh‑My‑zsh and the highlighted plugins transforms the shell into a more interactive and error‑resistant environment, helping developers work faster and with fewer mistakes.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ShellPluginscommand-linezshoh-my-zsh
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.