Zsh Cheatsheet
Power user.
Overview
Zsh is the modern shell that ships as default on macOS and many Linux distros. The cheatsheet captures the patterns power users actually use; the discipline is fluency, and fluency compounds across every operational task.
- Better completion. Programmable, context-aware tab completion; commands and arguments both complete.
- Plugin ecosystem. Oh-My-Zsh, Prezto, znap; mature ecosystem; opinionated defaults that match real workflows.
- Glob features.
**/,~, qualifiers, expansion; concise file selection that replaces shell-out to find. - History plus themes. Shared history across sessions; Powerlevel10k or Starship for information-rich prompts.
The approach
The practical approach: plugin-curated dotfiles, glob-aware command construction, tuned history, modal editing for power users. The team’s discipline produces fast shells that match the operator’s muscle memory.
- setopt SHARE_HISTORY. Share history across sessions; working memory survives terminal restart.
- **/ glob. Recursive glob; replaces find for simple cases; faster to type, faster to read.
- autoload -U compinit; compinit. Enable completion; the tab-completion power that distinguishes Zsh from bash.
- p10k or starship prompt. Information-rich prompt; git status, exit code, command duration always visible.
- vi-mode plugin. Modal editing; keyboard-first editing for engineers who prefer vi keybindings.
Why this compounds
Zsh fluency compounds across operations. Each plugin internalised grows team productivity; the discipline matures into reflex; the shell stops being friction and becomes leverage.
- Faster shell work. Fluent Zsh produces fast iteration; the operator types fewer keystrokes per task.
- Better workflows. Plugins capture patterns; the conventions transfer across projects and machines.
- Cross-host consistency. Sharing dotfiles produces consistent shells; the operator feels at home on any machine.
- Institutional knowledge. Each plugin teaches the shell; the team’s shell muscle grows.
Zsh fluency is an operational discipline that pays off across years. Nova AI Ops integrates with operations telemetry, surfaces patterns, and supports the team’s productivity discipline.