Skip to content

Instantly share code, notes, and snippets.

@PABourdais
Created February 5, 2026 17:18
Show Gist options
  • Select an option

  • Save PABourdais/6e9c913a780f9ec697b8273c90b5c00f to your computer and use it in GitHub Desktop.

Select an option

Save PABourdais/6e9c913a780f9ec697b8273c90b5c00f to your computer and use it in GitHub Desktop.
Customize iTerm2, using oh-my-zsh and powerlevel10k.

Customize iTerm2 On MacOS

Customize iTerm2, using oh-my-zsh and powerlevel10k.

Install Brew

Brew is a Package Manager for macOS. More info here: https://brew.sh/fr/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install iTerm2

More info here: https://iterm2.com/

brew install iterm2

iTerm2 Color theme

Download a theme, you can use one of these websites:

Then open the .itermcolors file you downloaded. The color settings will be imported into iTerm2. Apply it in iTerm2 through iTerm2 → settings → profiles → colors → colors presets.

Install Oh My Zsh

Oh My Zsh is a framework for managing your Zsh configuration. More info here: https://github.com/robbyrussell/oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Powerlevel10k

Powerlevel10k is a theme for Zsh. More info here: https://github.com/romkatv/powerlevel10k

brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc

Restart iTerm2

Restart iTerm2 and proceed with the instructions to set powerlevel10k.

Install plugins

List all the plugins from ohmysh:

ls ~/.oh-my-zsh/plugins/

Enable a plugin by adding its name to the plugins array inside ~/.zshrc. Example:

plugins=(rails git ruby)

You can also use plugins from the community, for example some of the most famous are zsh-autosuggestions and zsh-syntax-highlighting.

Install zsh-autosuggestions and zsh-syntax-highlighting

  1. Clone the repos
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
  1. Add the plugins to the list of plugins inside ~/.zshrc:
plugins=(# other plugins... zsh-autosuggestions zsh-syntax-highlighting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment