99 words
1 minute
Customizing Zsh with Oh-My-Zsh on macOS ARM M1

Table of contents#

Install oh-my-zsh#

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

Essential plugins for DevSecOps workflow#

Terminal window
# 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:

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

Apply configuration#

Terminal window
# Reload configuration
source ~/.zshrc
# Or restart terminal
exec zsh

Optional: PowerLevel10k theme (performance-optimized)#

Terminal window
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.

Customizing Zsh with Oh-My-Zsh on macOS ARM M1
https://mranv.pages.dev/posts/zsh-customize-macos/
Author
Anubhav Gain
Published at
2025-01-28
License
CC BY-NC-SA 4.0