Oh My Zsh Troubleshooting

Most Oh My Zsh problems come down to a handful of causes: fonts, file locations, permissions or too many plugins. Work through the sections below that match what you are seeing.

Oh My Zsh troubleshooting checklist for slow startup, missing icons and plugin configuration errors

Boxes or question marks in the prompt

Cause: your theme uses glyphs that your terminal font does not include.

Fix: install a Powerline or Nerd Font and select it in your terminal's profile settings. On WSL, install the font on Windows and select it in Windows Terminal. If you do not want special fonts, switch to a simple theme such as robbyrussell. More in the themes guide.

Theme or plugin changes are not applied

  • Make sure you saved ~/.zshrc and reloaded with omz reload or a new terminal tab.
  • Check for a second ZSH_THEME or plugins= line further down the file overriding the first.
  • Confirm the theme or plugin name is spelled exactly as the folder or file name.

"plugin not found" on startup

Oh My Zsh prints a warning such as [oh-my-zsh] plugin 'zsh-autosuggestions' not found when a listed plugin has no matching folder. External plugins must be cloned into the custom plugins folder first, and the folder name must match:

ls ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins

See the install commands in our plugins guide.

"zsh compinit: insecure directories"

Zsh refuses to load completion files from folders that other users can write to. List the affected folders and fix their permissions:

compaudit
compaudit | xargs chmod g-w,o-w

Only change permissions on folders you own and understand. The ~/.zshrc template also mentions ZSH_DISABLE_COMPFIX, which skips this permission check, but fixing permissions is the safer choice.

Slow shell startup

Measure first

time zsh -i -c exit

Run it a few times and note the typical result.

Find what is slow

Add zmodload zsh/zprof as the first line of ~/.zshrc and zprof as the last line, open a new shell, and read the report. Remove both lines when you are done.

Common fixes

  • Disable plugins you rarely use.
  • Version managers such as nvm can be slow to load. The bundled nvm plugin supports lazy loading; check its README with omz plugin info nvm.
  • Delete stale completion caches with rm -f ~/.zcompdump*, then reload.

Prompt is slow inside large Git repositories

Git-aware themes check repository status every time the prompt draws. Oh My Zsh lets you turn off the expensive "dirty" check per repository:

git config --add oh-my-zsh.hide-dirty 1

The ~/.zshrc template also includes DISABLE_UNTRACKED_FILES_DIRTY="true", which speeds up status checks in repositories with many untracked files.

Default shell did not change

  • Check where Zsh is installed with which zsh.
  • Make sure that path appears in /etc/shells; chsh only accepts listed shells.
  • Run chsh -s $(which zsh), then fully log out and back in. A new tab is not always enough.
  • On WSL, close all terminal windows and open a new one.

"omz: command not found"

Oh My Zsh is not being loaded. Your ~/.zshrc should contain these two lines:

export ZSH="$HOME/.oh-my-zsh"
source $ZSH/oh-my-zsh.sh

Also check that you are actually running Zsh: echo $0 should print zsh or -zsh.

Update errors

  • Local changes block the update: run git -C "$ZSH" status to see edited files. Move your edits into $ZSH_CUSTOM instead of changing core files.
  • Installed from the ZIP: a ZIP snapshot is not a Git checkout, so omz update cannot pull changes into it. Reinstall from a newer ZIP or switch to the Git-based installer.

Start fresh

If your configuration has become hard to debug, back it up and restore the default template:

cp ~/.zshrc ~/.zshrc.backup
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Then re-add your theme, plugins and aliases one at a time. As a last resort, uninstall_oh_my_zsh removes the framework, and you can reinstall using the installation steps.

Diagnose the exact layer before changing settings

Terminal problems can arise from the shell itself, the Oh My Zsh framework, a third-party plugin, the selected theme or the terminal emulator. The visible symptom rarely identifies the cause on its own. Begin by noting whether the failure happens before the first prompt, only after a command, or solely in one repository. Then reproduce it in a fresh shell with as few optional features as possible. A missing glyph suggests a font issue, whereas an unknown command may indicate an incorrect path or an unavailable program. Separating these possibilities prevents a simple fix from turning into a lengthy reinstall.

Use a written record when troubleshooting a stubborn configuration. Note which settings were changed, the exact error message and whether a new terminal session was opened afterward. Some changes require a complete restart of the emulator; others take effect after sourcing the configuration. Do not change multiple plugins simultaneously, because doing so destroys the evidence needed to identify the real cause. A reproducible test with a single variable is usually more informative than a broad collection of speculative edits.

Prioritise safe recovery and measured performance

Keep a backup copy of ~/.zshrc and custom prompt files before experimenting. If Zsh fails to initialise correctly, start a shell without loading the usual startup files and inspect the configuration from there. Restore the previous working version when necessary, then reintroduce new settings in small groups. Permission-related completion warnings deserve careful investigation; do not indiscriminately loosen filesystem permissions simply to silence them. Determine which directory or file has insecure ownership or access rights and correct only the affected path after verifying its purpose.

For performance complaints, measure a fresh interactive shell rather than relying on impressions. Compare results with optional plugins disabled, then enable them one at a time. A theme that queries Git status in a very large repository may be responsible for a delay that appears unrelated to startup. Likewise, a plugin invoking external tools can slow initialization even when its visible feature is rarely used. Record measurements across several runs and compare the same environment each time. The goal is not the smallest benchmark number but a stable, responsive shell under realistic daily conditions.

A disciplined troubleshooting checklist

When a problem appears, preserve the full error text, identify the affected account and platform, and test whether it occurs in both a normal and a clean Zsh session. Check shell version, plugin order, theme selection and file permissions before deleting anything. If the problem follows an update, compare the current configuration with your last working backup and examine only the components that changed. Once the issue is resolved, write down the underlying cause. That note will save time if the same symptoms return after a system migration or future upgrade.

Conclusion

Most Oh My Zsh problems are manageable once the source is isolated. Preserve the exact symptoms, verify whether the shell works without its usual configuration and change one element at a time. Font issues, permission warnings, plugin conflicts and startup delays require different solutions; treating them as interchangeable wastes effort. A small set of backups and a disciplined testing routine will make both current repairs and future upgrades markedly more dependable.