Install Oh My Zsh: Step-by-Step Shell Setup

Learn how to install Oh My Zsh, customize themes and plugins, and optimize your terminal workflow with Install Manual’s practical, step-by-step guide for a smoother shell experience.

Install Manual
Install Manual Team
·5 min read
Quick AnswerSteps

You will install Oh My Zsh to enhance your terminal with themes, plugins, and helpful prompts. This guide covers prerequisites, the automated installer, and post-install customization. According to Install Manual, a guided, cautious setup reduces common configuration mistakes and speeds up your workflow.

What Oh My Zsh is and why you might want it

Oh My Zsh is a community-driven framework for the Zsh shell that adds features, prompts, and utilities to streamline your command-line experience. By enabling curated themes, plugin ecosystems, and helpful aliases, it helps both newcomers and power users work more efficiently. If you frequently use the terminal for development, system administration, or scripting, Oh My Zsh can accelerate your daily tasks and make the shell feel more personalized. In this guide, you’ll learn how to install Oh My Zsh from scratch and tailor it to your workflow, whether you are on macOS or Linux. install oh my zsh is the core action that unlocks these enhancements and begins your customization journey.

Prerequisites and environment setup

Before installing Oh My Zsh, confirm your environment is ready. You need a Zsh-compatible shell and an active internet connection to fetch scripts from the official repository. On macOS and most Linux distributions, Zsh is available through the system package manager. If your system ships with a different default shell (like Bash), you’ll need to install Zsh and set it as the default. It’s also a good idea to back up your current shell configuration (typically ~/.zshrc) in case you want to revert changes. This preparation prevents data loss and makes the transition smoother for beginners and seasoned users alike.

Installing Oh My Zsh: automated installer

The simplest path to get started is to use the official installer script. The typical command downloads and runs the setup, creating a new ~/.oh-my-zsh directory and a default ~/.zshrc configuration. Use one of the following options based on your available tooling:

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

After running the installer, you’ll be prompted to switch your login shell to zsh if needed. The installer also creates a default theme and plugins you can customize later. If you encounter permission or network issues, retry the command in a terminal with elevated permissions or try a different network.

Post-install configuration: themes, plugins, and customization

With Oh My Zsh installed, customize your shell by editing the main configuration file at ~/.zshrc. The most common changes involve selecting a theme (ZSH_THEME) and enabling plugins (plugins=(git docker python)). Start with the default Robby Russell theme and a small set of plugins, then expand as you grow more comfortable. If you want a richer prompt experience, consider fonts and tools like Powerlevel10k or other themes that support icons and Powerline-like spacing. Remember to source ~/.zshrc after edits to apply changes immediately: source ~/.zshrc

Troubleshooting common issues during install

Some users encounter hiccups such as the installer not completing, network-related failures, or the shell not switching to zsh automatically. If installation fails, check your internet connection, ensure the shell path is accessible, and try again. If you see a command not found error for zsh, install Zsh via your package manager and retry. For font and prompt issues, verify that the terminal font supports the needed glyphs and that the selected theme is compatible with your font. Backup copies of your configuration are invaluable when undoing changes.

Best practices for ongoing maintenance and updates

Maintain your Oh My Zsh setup by regularly updating the framework and plugins. Run omz update to pull in improvements and fixes, and review your ~/.zshrc periodically to remove unused plugins. Keep backups of your configuration so you can compare changes and roll back swiftly if something breaks. Document any significant customizations so you can replicate them on new machines or after a reinstall. Consistent maintenance helps sustain a fast, reliable, and personalized shell experience.

Tools & Materials

  • Zsh-capable shell(Ensure Zsh is installed and set as your default shell)
  • curl(Used to fetch the official installer script)
  • wget(Alternative to curl if curl is unavailable)
  • Internet connection(Needed to download scripts and updates)
  • Backup tool (optional)(Backup ~/.zshrc and related configs before changes)

Steps

Estimated time: 20-30 minutes

  1. 1

    Verify the current shell

    Open the terminal and run echo $SHELL to confirm you are using Zsh or to see which shell is active. If the result shows something other than a Zsh path, plan to install Zsh first. This step ensures you understand your baseline before making changes.

    Tip: If you see /bin/bash, install Zsh via your system package manager before proceeding.
  2. 2

    Install Zsh if it’s missing

    Install the Zsh shell using your platform’s package manager (e.g., brew install zsh on macOS, sudo apt install zsh on Debian/Ubuntu). This prepares the environment for Oh My Zsh and avoids shell compatibility issues.

    Tip: Verify installation with zsh --version after completing the command.
  3. 3

    Run the Oh My Zsh installer

    Execute the official installer to fetch and set up Oh My Zsh. Use one of the following commands depending on your tool: - curl method: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - wget method: sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    Tip: If you prefer a dry run, you can inspect the script first by downloading it and reading its contents before running.
  4. 4

    Switch the default shell to Zsh

    If the installer did not automatically switch your shell, run chsh -s "$(command -v zsh)" and log out/in or restart your terminal to apply the change. This ensures future sessions start in Zsh.

    Tip: On some systems, you may also need to update /etc/passwd or use a system settings panel to change the login shell.
  5. 5

    Choose and apply a theme

    Edit the ~/.zshrc file to set ZSH_THEME with a preferred option (e.g., robbyrussell or agnoster). Save the file and source ~/.zshrc to apply changes immediately.

    Tip: If a theme doesn’t render properly, switch to a simpler theme and confirm the font supports required glyphs.
  6. 6

    Enable useful plugins

    Update the plugins array in ~/.zshrc to include useful items like git, docker, or python. Save and run source ~/.zshrc to activate them. Plugins extend functionality with aliases and helpers.

    Tip: Start with a small, essential plugin list and expand as you become comfortable.
  7. 7

    Test changes and back up configuration

    Open a new terminal session to verify the changes load correctly. Consider backing up ~/.zshrc before making large edits so you can revert if needed.

    Tip: Use git to track your ~/.zshrc changes for easy history and rollback.
  8. 8

    Optional: enhance the prompt with fonts

    If you want a richer prompt experience, install a font that supports icons (e.g., Powerlevel10k or Nerd Fonts) and configure the theme to use it. This step is optional but can greatly improve readability.

    Tip: Ensure the font is installed on your system and selected in your terminal’s font settings.
Pro Tip: Back up your current ~/.zshrc before changing anything.
Warning: Do not overwrite your existing shell configuration without a restore plan.
Note: Powerful prompts look great but may require additional fonts; test font compatibility early.
Pro Tip: After editing ~/.zshrc, run 'source ~/.zshrc' to apply changes without restarting.
Pro Tip: If a plugin causes slowdowns or errors, disable it temporarily to isolate the issue.

Got Questions?

What is Oh My Zsh and why should I use it?

Oh My Zsh is a community-driven framework for Zsh that adds themes, plugins, and helpers to simplify and streamline your shell experience. It helps with faster navigation, command suggestions, and a more customizable prompt.

Oh My Zsh is a popular framework that makes Zsh easier and more powerful with themes and plugins.

Do I need Oh My Zsh to use Zsh?

No. You can use Zsh without Oh My Zsh, but Oh My Zsh makes configuration, theming, and plugin management much easier for most users.

Not required, but it helps simplify setup and customization.

Can I install Oh My Zsh on Windows?

Oh My Zsh runs on a Zsh environment, which Windows users can achieve via Windows Subsystem for Linux (WSL) or a Linux VM. There is no native Windows install.

You’ll want Windows Subsystem for Linux or a Linux VM to use Oh My Zsh on Windows.

Is Oh My Zsh safe to install?

Oh My Zsh is open-source and widely used; install from the official repo and review scripts before running. Keeping backups helps mitigate risks.

Yes, when installed from the official source and with backups in place.

How do I switch back to Bash after installing Oh My Zsh?

Change your default shell to Bash with chsh -s /bin/bash and restart your terminal. You can always re-enable Zsh later if desired.

Set your default shell back to Bash and restart the terminal.

Why is my terminal slow after installing Oh My Zsh?

Plugins and heavy themes can slow down the prompt. Disable nonessential plugins and test performance with a minimal setup, then re-enable features gradually.

Slow prompts usually come from plugins; trim the list and test performance.

Watch Video

Main Points

  • Verify Zsh is active before installation.
  • Use the official installer for a smooth setup.
  • Customize themes and plugins to suit your workflow.
  • Back up configuration before making changes.
  • Update and maintain Oh My Zsh regularly.
Process diagram showing prepare, install, and customize steps for Oh My Zsh
Oh My Zsh installation process in 3 steps

Related Articles