ScriptsApr 11, 2026·1 min read

Oh My Zsh — Delightful Framework for Managing Zsh Configuration

Oh My Zsh is a delightful, community-driven framework for managing your Zsh configuration. 300+ plugins (git, docker, node, python, homebrew), 140+ themes, and auto-update tooling. The de facto starting point for developer terminals.

SC
Script Depot · Community
Quick Use

Use it first, then decide how deep to go

This block should tell both the user and the agent what to copy, install, and apply first.

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

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

Edit ~/.zshrc:

ZSH_THEME="agnoster"
plugins=(git docker node npm pnpm pyenv zsh-autosuggestions zsh-syntax-highlighting)
source ~/.zshrc
omz update        # Update OMZ
omz reload        # Reload config
Intro

Oh My Zsh is a delightful, open-source, community-driven framework for managing your Zsh configuration. Created by Robby Russell in 2009 with the tagline "A delightful community-driven framework", OMZ ships with 300+ plugins, 140+ themes, and sane defaults. 186K GitHub stars make it the most-starred shell project on GitHub.

What Oh My Zsh Does

  • 300+ plugins — git aliases, docker completion, node version manager helpers, kubectl, python, rails, macos, tmux
  • 140+ themes — agnoster, powerlevel10k, robbyrussell, spaceship, honukai
  • Auto-updateomz update pulls latest from GitHub
  • Aliases — shortcuts for common commands
  • Completions — enhanced tab-complete for tools
  • Framework helpersomz plugin, omz theme, omz pr test
  • Community — 2400+ contributors

Architecture

OMZ lives in ~/.oh-my-zsh/. Your ~/.zshrc sources $ZSH/oh-my-zsh.sh which loads themes + plugins in order. Plugins are just directories with a .plugin.zsh file. Themes are .zsh-theme files that set PROMPT and RPROMPT.

Self-Hosting

Shell framework — installs to your home directory.

Key Features

  • 300+ built-in plugins
  • 140+ built-in themes
  • Auto-update system
  • Plugin system
  • Command aliases
  • Enhanced completions
  • Git status in prompt
  • Active community

Comparison

Framework Plugins Themes Speed
Oh My Zsh 300+ 140+ Slow to start
Prezto ~30 ~20 Faster
Zinit Any (via manager) Any Fastest
Antigen Any Any Fast
zap Any Any Very fast

常见问题 FAQ

Q: 启动慢? A: OMZ 默认加载很多东西。优化方案:禁用不用的 plugins、启用 zcompdump 缓存、或切到 zinit/zap 这类按需加载管理器。

Q: 和 Powerlevel10k? A: p10k 是最流行的主题之一,独立安装后在 .zshrc 里设 ZSH_THEME="powerlevel10k/powerlevel10k"。首次运行有配置向导。

Q: Windows 能用吗? A: 能。Windows 用 WSL2 或 Git Bash + Zsh。原生 PowerShell 不适用。

来源与致谢 Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets