# Zsh

> Provides guidance on using Zsh, including Oh My Zsh plugins, themes, and performance best practices.

- Skill: `majiayu000/zsh` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/zsh`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/zsh/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools, Dev Tooling
- Tags: Oh My Zsh, Plugins, Shell, Terminal, Themes, Zsh
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-08-22
- Page: https://skillmd.com/skills/majiayu000/zsh

---


# Zsh

Zsh is the default shell on macOS. It is highly customizable and compatible with Bash.

## When to Use

- **macOS**: It's the default.
- **Customization**: The plugin ecosystem (`omz`, `zinit`) is massive.
- **Compatibility**: Runs most Bash scripts unmodified.

## Core Concepts

### Oh My Zsh (OMZ)

The community framework. 300+ plugins.
`plugins=(git docker kubectl)`

### Globbing

Zsh has powerful wildcard matching. `ls **/*.js` (Recursive).

### Themes

`Powerlevel10k` is the gold standard for performance and information density.

## Best Practices (2025)

**Do**:

- **Use a Fast Plugin Manager**: `antidote` or `sheldon` are faster than OMZ's built-in loader.
- **Enable Autosuggestions**: The `zsh-autosuggestions` plugin brings Fish-like behavior to Zsh.
- **Use Syntax Highlighting**: `zsh-syntax-highlighting`.

**Don't**:

- **Don't over-clutter prompt**: A prompt that takes 200ms to render makes the terminal feel sluggish.

## References

- [Zsh Documentation](https://zsh.sourceforge.io/Doc/Release/index.html)

