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-update —
omz updatepulls latest from GitHub - Aliases — shortcuts for common commands
- Completions — enhanced tab-complete for tools
- Framework helpers —
omz 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
- Docs: https://ohmyz.sh
- GitHub: https://github.com/ohmyzsh/ohmyzsh
- License: MIT