Oh My Zsh Themes

Themes are the first thing most people change after installing Oh My Zsh. This guide explains what a theme actually controls, how to switch themes safely, and how to add or customize your own.

Four Oh My Zsh terminal themes with Robbyrussell, Agnoster, Powerlevel10k and Minimal prompt previews

What a Theme Actually Changes

An Oh My Zsh theme is a small Zsh script that sets your prompt, the text shown before your cursor every time the shell is ready for input. Themes can show your username and host, the current directory, the Git branch and whether it has uncommitted changes, the exit status of the last command, a clock and more.

Bundled themes live in ~/.oh-my-zsh/themes/ as files ending in .zsh-theme. A theme does not change your terminal's background or colour palette; that comes from your terminal app's profile settings. The theme only decides what the prompt contains and which colours it asks the terminal to use.

The default theme: robbyrussell

A fresh installation uses robbyrussell. It is intentionally minimal: an arrow that changes colour when the previous command fails, the current folder name, and Git branch information when you are inside a repository. Many people never change it, and it works with any font.

How to change your theme

The theme is set by one line in your ~/.zshrc file. Open the file in any editor and find ZSH_THEME:

nano ~/.zshrc

Change the value to the name of the theme you want, without the .zsh-theme extension:

ZSH_THEME="agnoster"

Save the file, then reload your shell so the change takes effect. You can open a new terminal tab or run:

omz reload

Preview themes with the omz command

Oh My Zsh ships with an omz helper command that makes trying themes faster:

  • omz theme list lists every available theme, including custom ones.
  • omz theme use bira loads a theme for the current session only, which is ideal for previewing.
  • omz theme set bira writes the theme into your ~/.zshrc so it becomes the default.

Preview with omz theme use first. Nothing is written to your configuration until you are happy with a theme.

Oh My Zsh bundles well over a hundred themes. Tastes differ, but these are commonly recommended starting points:

ThemeStyleSpecial font needed?
robbyrussellMinimal, single line, Git awareNo
agnosterSegmented "powerline" look with user, path and Git statusYes, a Powerline or Nerd Font
af-magicClean two-colour prompt with a separator lineNo
biraTwo-line prompt with user, host and pathNo
ysTwo-line prompt with time, path and Git detailsNo
refinedVery minimal, inspired by the Pure promptNo

Screenshots of every bundled theme are published on the project's GitHub wiki, which is the most reliable way to compare them visually.

Using random themes

If you cannot decide, set ZSH_THEME="random". Each new shell loads a different theme and prints its name. To limit the rotation to themes you like, add a candidate list:

ZSH_THEME="random"
ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "bira" "af-magic" )

When you find one you like, run echo $RANDOM_THEME to see its name and set it permanently.

Fonts, icons and broken symbols

Themes such as agnoster use special glyphs (arrows, branch symbols, icons). If your terminal font does not contain them you will see empty boxes or question marks. The fix is to install a font that includes these glyphs, such as a Powerline font or a Nerd Font, and then select that font in your terminal's profile settings. Installing the font alone is not enough; the terminal must be told to use it.

If you use Windows Terminal with WSL, install the font on Windows, because that is where the text is rendered. See our Oh My Zsh on Windows guide for details.

Installing external themes

You are not limited to bundled themes. External themes are installed into the custom themes folder, usually ~/.oh-my-zsh/custom/themes, which is available as $ZSH_CUSTOM/themes. The two most popular external options are:

  • Powerlevel10k: a fast, highly configurable theme with a setup wizard. Follow our step-by-step Oh My Zsh + Powerlevel10k guide.
  • Spaceship: a minimal, informative prompt. Its documentation describes cloning it into the custom themes folder and linking the theme file.

After installing, set ZSH_THEME to the theme's name as described in its documentation and reload your shell.

Customizing a theme without losing changes

Avoid editing files inside ~/.oh-my-zsh/themes/ directly. Those files belong to Oh My Zsh and can be replaced or cause conflicts when you update. Instead, copy the theme into your custom folder under a new name and edit the copy:

cp ~/.oh-my-zsh/themes/robbyrussell.zsh-theme \
   $ZSH_CUSTOM/themes/my-theme.zsh-theme

Then set ZSH_THEME="my-theme". Your version survives every update.

Turning themes off

If you prefer to manage the prompt yourself, or want to use a cross-shell prompt such as Starship, set ZSH_THEME="". Oh My Zsh will still load its plugins and settings but will not touch your prompt. Our Oh My Zsh alternatives guide compares prompt tools that work this way.

Key takeaways

Change ZSH_THEME in ~/.zshrc, preview with omz theme use, install a Nerd Font for icon-heavy themes, and keep custom edits in $ZSH_CUSTOM. Next, pair your new look with useful Oh My Zsh plugins.

Designing a prompt for everyday clarity

A well-designed terminal prompt is more than decoration. It should communicate the information you regularly need without occupying the space required for commands and results. Begin with the current directory and the active Git branch, then decide whether a user name, host name, execution status or elapsed time deserves permanent visibility. A compact single-line prompt suits short commands and narrow laptop displays, whereas a two-line layout can make long paths and complex Git branches easier to read. Evaluate each theme against the actual work you perform rather than selecting one solely because a screenshot looks impressive.

Colour also has a functional purpose. Give errors, warnings and successful states visually distinguishable treatments, but do not use colour as the only indicator of meaning. A prompt should remain understandable in a remote terminal, during a screen-sharing session and against your chosen background. Subtle contrast tends to age better than maximal saturation. When comparing candidates, open the same repository in each theme, enter a nested directory and deliberately create an uncommitted change. Those simple trials reveal whether the prompt explains your environment clearly under realistic conditions.

Testing and maintaining a theme responsibly

Before making lasting changes, copy your existing configuration to a dated backup. Edit the ZSH_THEME setting in the active ~/.zshrc file and reload your configuration in a new terminal tab so you can compare the result without losing your previous session. If the prompt looks different from the preview, check the terminal font, true-colour support and any theme-specific requirements. A good test also includes a directory without a Git repository, a repository with untracked files and a command that returns a non-zero exit status. A reliable theme behaves gracefully in all three situations.

Theme performance can matter as much as appearance. Prompts that run several external programs for every redraw can feel sluggish on remote connections or in large repositories. If pressing Enter produces a visible delay, profile the shell before installing additional plugins. Review which segments fetch Git metadata or call external utilities, then disable elements that provide little practical value. Keep third-party theme files under the custom directory so a future framework update does not overwrite your modifications. Finally, document your font and theme choices for easy reproduction on another machine.

A practical evaluation checklist

Treat your terminal as a daily working instrument: it must remain usable at a small width, preserve copy-and-paste accuracy and display current context consistently. Check readability with both light and dark terminal colour schemes if you regularly switch between them. Watch for unusual glyph spacing around Git branch markers, especially after a font upgrade. If you administer remote servers, decide whether the hostname should be displayed prominently to prevent commands being entered into the wrong environment. These refinements are small individually, but together they turn a visually attractive prompt into a dependable professional interface.

Conclusion

The most successful Oh My Zsh theme is the one that makes your next action clearer. Select a prompt that communicates essential directory and Git information, renders correctly in your chosen terminal and stays responsive across different projects. Preview candidates in realistic conditions, preserve a working configuration and keep personal modifications outside framework-managed directories. Visual personality and technical restraint are not competing goals: together, they produce a command line that feels distinctive without placing obstacles between you and your work.