oh my zsh

1405/1/26

What is Oh My Zsh and Why You’ll Love It

If you’ve been using the terminal for a while—especially if you’re using zsh—you’ve probably heard of Oh My Zsh. But what exactly is it, and why is it so popular?

In this post, I’ll explain it in a simple and straightforward way.


What is Oh My Zsh?

Oh My Zsh is an open-source, community-driven framework for managing your Zsh configuration.

Zsh itself is a shell—similar to Bash, but with more features and flexibility. Many developers use it to get a better command-line experience.

On its own, Zsh is already powerful. But Oh My Zsh adds a lot of ready-to-use features, such as:

  • Beautiful themes
  • Useful plugins
  • A structured configuration system
  • Productivity enhancements (like autosuggestions and syntax highlighting)

In short, Oh My Zsh makes your terminal more powerful, more customizable, and more enjoyable to use.


Why Use Oh My Zsh?

Here are a few good reasons to use it:

  • Highly customizable with many themes
  • Command autosuggestions
  • A large ecosystem of plugins (Git, Docker, npm, and more)
  • Helpful shortcuts to speed up your workflow
  • Easy configuration through a single file (.zshrc)

Even if you’re not an advanced user, it makes working in the terminal much more pleasant.


How to Install Oh My Zsh

Step 1: Install Zsh

On Termux:

pkg install zsh

On Ubuntu/Debian:

sudo apt install zsh

Step 2: Set Zsh as Your Default Shell (Optional)

chsh -s zsh

You may need to log out and log back in for this to take effect.


Step 3: Install Oh My Zsh

Using curl:

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

Or using wget:

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

This script will:

  • Create the ~/.oh-my-zsh/ directory
  • Generate a default .zshrc file
  • Launch Zsh with the new configuration

Working with Themes and Plugins

Change the Theme

Open your .zshrc file and find this line:

ZSH_THEME="robbyrussell"

Change it to any theme you like, for example:

ZSH_THEME="agnoster"

Or if you’ve installed Powerlevel10k:

ZSH_THEME="powerlevel10k/powerlevel10k"

Then apply the changes:

source ~/.zshrc

Enable Plugins

In your .zshrc, find:

plugins=(git)

Add more plugins like this:

plugins=(git docker node npm autojump)

Then reload:

source ~/.zshrc

Useful Features

  • gst instead of git status
  • ll instead of ls -l
  • .. to go up one directory
  • z to jump to frequently used directories
  • Autosuggestions and syntax highlighting (with plugins)
  • Many built-in Git shortcuts

Final Thoughts

In my experience, Oh My Zsh makes working with the terminal much more enjoyable. I didn’t realize how much time I was wasting on repetitive commands until I started using it.

If you like customizing your tools, want to work faster, or just want a better-looking terminal, it’s definitely worth trying.

You can learn more on the official GitHub repository: https://github.com/ohmyzsh/ohmyzsh

saleh askari
saleh askari

Thank you so much for reading this blog post.