Quantum Theme for ZSH

June 3, 2026 · View on GitHub

Preview

A lightweight, configurable ZSH theme with git integration, built for oh-my-zsh.

Installation

One-liner:

bash <(curl -fsSL https://raw.githubusercontent.com/calebephrem/quantum-zsh/main/install.sh)

Manual:

  1. Clone the repository
   git clone https://github.com/calebephrem/quantum-zsh ~/.oh-my-zsh/custom/themes/quantum
  1. Copy the default config
   cp ~/.oh-my-zsh/custom/themes/quantum/.quantumrc ~/.quantumrc
  1. Add the qtm alias to your .zshrc
   echo 'alias qtm="source ~/.oh-my-zsh/custom/themes/quantum/cli.sh"' >> ~/.zshrc
  1. Set the theme in your .zshrc
   ZSH_THEME="quantum/quantum"
  1. Reload your shell
   exec zsh

Configuration

Quantum is configured through ~/.quantumrc, created automatically on install script.

Using the CLI:

qtm set GIT_BRANCH_SYMBOL " "
qtm set DIR_STYLE short
qtm set GIT_SHOW_DIRTY false
qtm get COLOR_ARROW
qtm list
qtm reload
qtm reset # To restore quantum theme to it's initial config

Segments

Control what shows in your prompt by editing the SEGMENTS array in ~/.quantumrc:

SEGMENTS=(dir git_status)

Available segments: dir, git_status, venv, user, host, time, exit_code

Options

KeyDefaultDescription
SEGMENTS(dir git_status)Segments to display, in order
PROMPT_SYMBOL»Arrow/separator symbol
GIT_BRANCH_SYMBOLSymbol before branch name
GIT_DIRTY_SYMBOLShown when working tree is dirty
GIT_CLEAN_SYMBOL``Shown when working tree is clean
GIT_AHEAD_SYMBOLShown when ahead of remote
GIT_BEHIND_SYMBOLShown when behind remote
COLOR_DIRcyanDirectory color
COLOR_BRANCHyellowBranch name color
COLOR_DETACHEDredDetached HEAD color
COLOR_ARROWgreenPrompt symbol color
COLOR_DIRTYredDirty indicator color
COLOR_CLEANgreenClean indicator color
COLOR_VENVblueVirtual environment color
COLOR_USERmagentaUsername color
COLOR_HOSTwhiteHostname color
COLOR_TIMEwhiteTime color
COLOR_EXIT_OKgreenExit code color on success
COLOR_EXIT_FAILredExit code color on failure
DIR_STYLEnamename, short, or full
GIT_SHOW_DIRTYtrueShow dirty indicator
GIT_SHOW_AHEAD_BEHINDfalseShow ahead/behind counts
SHOW_VENVtrueShow Python virtual environment name
SHOW_EXIT_CODEfalseShow exit code of last command
NEWLINE_BEFORE_PROMPTfalsePrint a newline before each prompt

Valid color values: black, red, green, yellow, blue, magenta, cyan, white

Screenshot

Screenshot

Notes

  • Found a bug? Open an issue
  • Using VS Code? Check out the Quantum VS Code theme
  • Enjoying the theme? Show some love by starring the repo. It helps more shell stylists discover Quantum Theme :3