Skip to content

Customizing Zsh with Oh-My-Zsh on macOS ARM M1

Published: at 06:25 PM

Table of contents

Open Table of contents

Install oh-my-zsh

# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Essential plugins for DevSecOps workflow

# Clone popular plugins to custom plugins directory
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-completions

Configure .zshrc

Edit ~/.zshrc and update the plugins line:

plugins=(
  git
  docker
  kubectl
  aws
  terraform
  rust
  brew
  macos
  zsh-autosuggestions
  zsh-syntax-highlighting
  zsh-completions
)

Apply configuration

# Reload configuration
source ~/.zshrc

# Or restart terminal
exec zsh

Optional: PowerLevel10k theme (performance-optimized)

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Set ZSH_THEME="powerlevel10k/powerlevel10k" in .zshrc, then run p10k configure.

The selected plugins provide Git integration, cloud tool completions, syntax highlighting, and intelligent autosuggestions—particularly useful for security tooling and infrastructure management workflows.