This repository documents a macOS terminal customization using zsh, oh-my-zsh, powerlevel10k, and useful shell plugins.
Tested on macOS with Homebrew installed.
oh-my-zshshell frameworkpowerlevel10kprompt theme- command highlighting with
zsh-syntax-highlighting - shell suggestions with
zsh-autosuggestions - patched developer fonts for icons and glyphs
- optional VS Code terminal font configuration
Install Homebrew (if needed)
If you do not have Homebrew installed, run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Install Hack Nerd Font
brew tap homebrew/cask-fonts
brew install font-hack-nerd-fontOnce installed, set your terminal font to Hack Nerd Font in Terminal, iTerm2, or VS Code.
Important: select the font before you run
p10k configure, otherwise Powerlevel10k may display missing or incorrect icons.
2. Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"This installs ~/.oh-my-zsh and creates a default ~/.zshrc file.
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10kzsh-syntax-highlighting plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlightingzsh-autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsOpen your Zsh config file:
open ~/.zshrcThen update the theme and plugin list:
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)If you already have other plugins enabled, keep them in the list.
zsh-syntax-highlightingshould be last so it loads after the other plugins.
Save the file and reload your shell:
source ~/.zshrcRun the Powerlevel10k configuration wizard:
p10k configureTip: make sure your terminal is already using
Hack Nerd Fontbefore running this command so the prompt icons appear correctly.
If you prefer manual editing, open the config file:
open ~/.p10k.zshKeep the theme and plugins current with this command:
git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k pull && \
git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting pull && \
git -C ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions pullIf you use the integrated VS Code terminal, add this to your settings:
{
"terminal.integrated.fontFamily": "Hack Nerd Font"
}Enjoy your customized terminal setup
