Skip to main content

Menu

LEVEL 0
0/5 XP
HomeAboutTopicsPricingMy VaultStats

Categories

πŸ€– Artificial Intelligence
☁️ Cloud and Infrastructure
πŸ’Ύ Data and Databases
πŸ’Ό Professional Skills
🎯 Programming and Development
πŸ”’ Security and Networking
πŸ“š Specialized Topics
HomeAboutTopicsPricingMy VaultStats
LEVEL 0
0/5 XP
GitHub
Β© 2026 CheatGridβ„’. All rights reserved.
Privacy PolicyTerms of UseAboutContact

Zsh and Oh-My-Zsh Shell Configuration Cheat Sheet

Zsh and Oh-My-Zsh Shell Configuration Cheat Sheet

Back to Operating Systems and CLI
Updated 2026-05-20

Zsh (Z Shell) is a powerful UNIX shell that became macOS's default in Catalina (10.15). Oh-My-Zsh (OMZ) is the most popular community framework for managing Zsh configuration, bundling 300+ plugins and 150+ themes. Together they transform the terminal into a highly productive environment with smart completions, syntax highlighting, rich prompts, and extensible plugin architecture. This cheat sheet covers installation, plugin management, theme setup, shell options, globbing, parameter and history expansion, prompt customization, and the completion system.

What This Cheat Sheet Covers

This topic spans 15 focused tables and 137 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.

Table 1: Oh-My-Zsh Installation & Core ManagementTable 2: Key .zshrc Variables & EnvironmentTable 3: Built-in Oh-My-Zsh PluginsTable 4: External Plugin InstallationTable 5: Powerlevel10k Theme SetupTable 6: Zsh Shell Options (setopt)Table 7: Zsh Startup File OrderTable 8: Aliases β€” Regular, Global, and SuffixTable 9: Shell Functions & AutoloadingTable 10: Key Bindings (bindkey)Table 11: Zsh Globbing & Glob QualifiersTable 12: Parameter ExpansionTable 13: History ExpansionTable 14: Prompt CustomizationTable 15: Completion System (compinit & zstyle)

Table 1: Oh-My-Zsh Installation & Core Management

Oh-My-Zsh installs with a single shell command and manages itself as a Git repository inside ~/.oh-my-zsh. Understanding the key management commands lets you keep OMZ and its plugins current and swap between configurations cleanly.

CommandExampleDescription
Install Oh-My-Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Downloads and runs the official install script; backs up existing .zshrc and creates a new one
Check current shell
echo $SHELL
Shows the path to your active shell executable; confirm Zsh is set
Set Zsh as default
chsh -s $(which zsh)
Changes the default login shell to Zsh; requires logout/login to take effect
Update Oh-My-Zsh
omz update
Updates OMZ framework and all bundled plugins to the latest version

More in Operating Systems and CLI

  • WSL – Windows Subsystem for Linux Cheat Sheet
  • AWS CLI Cheat Sheet
  • Disk and Storage Management in Linux Cheat Sheet
  • GCP CLI Cheat Sheet
  • Linux Process Management Cheat Sheet
  • System Administration Cheat Sheet
View all 31 topics in Operating Systems and CLI