Skip to content

About

A simple oh-my-zsh plugin to set the terminal colors for each new interactive shell

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Terminal Colors

An oh-my-zsh plugin that automatically applies different color schemes to each terminal window/tab based on the shell's PID.

Features

  • 25+ color schemes including dark, light, and vibrant themes
  • Automatic theme rotation based on shell PID
  • Manual theme switching
  • Random theme selection

Installation

Oh My Zsh

  1. Clone this repository into oh-my-zsh's custom plugins directory:
git clone https://github.com/stephenc-ori/terminal-colors.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/terminal-colors
  1. Add terminal-colors to your plugins array in ~/.zshrc:
plugins=(
    # ... other plugins
    terminal-colors
)
  1. Restart your terminal or run:
source ~/.zshrc

Usage

The plugin will automatically apply a different color scheme to each new terminal based on the shell's PID.

Manual Commands

List all available themes:

set_terminal_colors

Apply a specific theme:

set_terminal_colors dracula

Apply a random theme:

set_terminal_colors --random

Available Themes

Dark Themes

  • nord
  • gruvbox_dark
  • dracula
  • solarized_dark
  • tokyo_night
  • catppuccin_mocha
  • monokai
  • one_dark
  • material_darker
  • palenight

Light/Bright Themes

  • solarized_light
  • gruvbox_light
  • one_light
  • github_light
  • catppuccin_latte
  • material_light
  • mint_fresh
  • lavender_dream
  • peachy_keen
  • cream_soda

Vibrant Colored Backgrounds

  • red_velvet (dark red)
  • ocean_blue (navy blue)
  • forest_green (dark green)
  • royal_purple (deep purple)
  • sunset_orange (bright orange)
  • sky_blue (light blue)
  • bubblegum_pink (pink)

Terminal Compatibility

This plugin uses ANSI/OSC escape sequences to set terminal colors. It works best with modern terminals that support these sequences, including:

  • Ghostty
  • iTerm2
  • Kitty
  • Alacritty
  • WezTerm
  • Terminal.app (macOS)

License

MIT License

About

A simple oh-my-zsh plugin to set the terminal colors for each new interactive shell

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages