How to install Oh My Zsh: themes, plugins and how to undo it
By Pull This RepoPosted 4 min read
Short answer
To install Oh My Zsh, make sure zsh, curl and git are installed, then run the curl one-liner from the ohmyzsh/ohmyzsh README in your terminal. It clones into ~/.oh-my-zsh, renames your old .zshrc to .zshrc.pre-oh-my-zsh and writes a new one. Change ZSH_THEME and the plugins list in ~/.zshrc, and run uninstall_oh_my_zsh to undo it.
To install Oh My Zsh you run one command, and it rewrites your zsh settings file with a theme and a plugin system. Oh My Zsh calls itself "an open source, community-driven framework for managing your zsh configuration." This page covers the Oh My Zsh install on Mac and Linux, how to pick a theme, two plugins worth turning on, how updates work, and how to undo all of it. Every command was copied from the project's README and its linked docs on 22 November 2026.
What do you need before you install Oh My Zsh?
You need zsh, curl or wget, and git. The README's prerequisites:
- zsh version 4.3.9 or newer, with 5.0.8 or newer preferred. Check with
zsh --version. - curl or wget.
- git, version 2.4.11 or higher recommended.
On a Mac, zsh is already there. Apple's support page says that starting with macOS 10.15, your Mac uses zsh as the default login shell and interactive shell. If you need Git, our guide on how to install Git covers it.
On Linux, install zsh first, then make it your default shell. From the project wiki:
sudo apt install zsh # Ubuntu or Debian
sudo dnf install zsh # Fedora
chsh -s $(which zsh)Log out and back in, then echo $SHELL should print a path such as /bin/zsh. The wiki notes that on recent Fedora it recommends sudo chsh $USER instead.
The README's compatibility table marks macOS, Linux, FreeBSD, Android and Windows through WSL2 as supported.
What is the Oh My Zsh install command?
It is this one line from the README:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"If you have wget but not curl:
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"What happens when you run it:
- It clones Oh My Zsh into
~/.oh-my-zsh, the default location. - Your old
.zshrcis renamed to.zshrc.pre-oh-my-zsh, and a new one is written. The README suggests moving any settings you want to keep into the new file. - It offers to switch your default shell to zsh, then starts zsh.
The README also lists a mirror, https://install.ohmyz.sh/, for places where raw.githubusercontent.com is blocked, such as some ISPs in China or India.
Want to read the script first? The README recommends it for projects you do not know yet:
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
sh install.shFor scripted setups, add --unattended. The README says it then will not try to change your default shell or start zsh when it finishes:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattendedHow do you change the Oh My Zsh theme?
Edit one line in ~/.zshrc. The default looks like this:
ZSH_THEME="robbyrussell"Change the name to another bundled theme, for example the README's own example:
ZSH_THEME="agnoster"Open a new terminal window to see it. Screenshots of most themes are on the project wiki.
Two things trip people up, both from the README:
- Odd symbols in the prompt. Many themes need a Powerline Font or a Nerd Font installed to render properly.
- Colours and font did not change. Themes only control the prompt. Your terminal app sets the colour scheme and font.
Can't choose? ZSH_THEME="random" picks a different theme each time you open a terminal.
Which Oh My Zsh plugins should you turn on?
Start with git, which is bundled and already listed in the new .zshrc as plugins=(git), then add two popular third-party plugins from the zsh-users project. Plugins go in the plugins=( ) list in ~/.zshrc. The README's warning: separate them with spaces, tabs or new lines, and do not use commas, or it will break.
zsh-autosuggestions suggests commands as you type, based on your history and completions. It is MIT licensed with 36,218 stars on GitHub on 22 November 2026. Clone it into the custom plugins folder, as its install guide shows:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionszsh-syntax-highlighting colours commands as you type them at the prompt. It is BSD 3-Clause licensed with 23,100 stars on GitHub on 22 November 2026:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingThen list all three in ~/.zshrc and open a new terminal:
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)Each bundled plugin has its own README in the repo's plugins folder listing the aliases it adds, so read it before you turn on a plugin you do not know.
How do you update Oh My Zsh?
It asks you on its own every two weeks by default, or you run omz update any time:
omz updateTo change the schedule, add one of these lines to ~/.zshrc before Oh My Zsh is loaded:
zstyle ':omz:update' mode auto # update without asking
zstyle ':omz:update' mode reminder # just remind me
zstyle ':omz:update' mode disabled # never check
zstyle ':omz:update' frequency 7 # check every 7 daysThe README also lists a cooldown setting, zstyle ':omz:update' cooldown 10, that only applies updates at least that many days old.
How do you uninstall Oh My Zsh?
Run this in your terminal:
uninstall_oh_my_zshThe README says it will "remove itself and revert your previous bash or zsh configuration." That is the file it saved as .zshrc.pre-oh-my-zsh. The uninstall script deletes the ~/.oh-my-zsh folder, so third-party plugins you cloned into custom/plugins go with it.
What is the catch?
Oh My Zsh changes your shell's startup file, so anything you had in .zshrc needs copying back by hand from the .pre-oh-my-zsh backup. Fancy themes depend on fonts you install separately. And the one-liner runs a script straight from the internet, which is why the README itself suggests downloading and reading it first.
On a Mac, how to install Homebrew is the usual next step, since many terminal tools install through it.
Pull it. Stash it.
Questions people ask
Do I need to install zsh before Oh My Zsh?
Yes. The README lists zsh, curl or wget, and git as prerequisites. Macs have used zsh as the default shell since macOS 10.15, so most Macs are ready. On Ubuntu or Debian, install it with apt install zsh, then make it your default shell with chsh -s $(which zsh).
How do I change the Oh My Zsh theme?
Open ~/.zshrc, find the line ZSH_THEME=robbyrussell (the value is in quotes) and change the name to another bundled theme such as agnoster, then open a new terminal window. Many themes need a Powerline or Nerd Font installed, or their prompt symbols show as odd characters.
How do I add plugins to Oh My Zsh?
List them inside plugins=( ) in ~/.zshrc, separated by spaces or new lines, never commas. Bundled plugins such as git work right away. Third-party ones like zsh-autosuggestions must be cloned into the custom/plugins folder first, then added to the list.
How do I uninstall Oh My Zsh?
Run uninstall_oh_my_zsh in your terminal. The README says it removes Oh My Zsh and reverts your previous bash or zsh configuration, which is the .zshrc it saved as .zshrc.pre-oh-my-zsh during install.
Is Oh My Zsh free?
Yes. It is open source under the MIT licence. The ohmyzsh/ohmyzsh repo had 190,769 stars on GitHub on 22 November 2026 and was last pushed to on 16 November 2026. It does not publish GitHub releases; updates come through the omz update command.
Sources
More repos like this
Get tomorrow's repo in your feed
One free, open source repo a day as a short video, shown working, with the catch named. Pull it. Stash it.
