Skip to content

About

Live terminal theme switcher with themes, instant previews, and support for Windows, macOS & Linux.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

18 stars

Watchers

1 watching

Forks

Repository files navigation

tstyles — switch terminal themes live

Tests XERJ Corpus Hub contributor PowerShell Gallery

Switch terminal themes live. Run tstyles, arrow through 18 themes previewing each one in your current tab — Enter keeps it, Esc reverts to exactly how it looked before. The palette, the cursor color and the prompt repaint instantly on any terminal that speaks OSC; on Windows Terminal and WezTerm the font, opacity and animated background come with them. All in one command, all non-destructive.

Arrowing through the style picker, each theme previewing live in the terminal

Works on Windows Terminal, macOS Terminal.app, iTerm2, and any terminal that speaks OSC color sequences — and in zsh and bash, not just PowerShell. Runs on PowerShell 7 and Windows PowerShell 5.1. Keep your own prompt (Oh My Posh / Starship) with tstyles <name> -KeepPrompt.

Install

Install-PSResource -Name TerminalStyles
Import-Module TerminalStyles -DisableNameChecking

On macOS and Linux this needs PowerShell first — brew install powershell, or see Requirements. On Windows it is already there.

Add the Import-Module line to your $PROFILE so it loads on every new shell tab — or run tstyles register once and it does that for you, with a confirm prompt first. It writes to the $PROFILE of each PowerShell engine it finds on your PATH — on Windows that is pwsh 7 and Windows PowerShell 5.1; on macOS and Linux, pwsh and pwsh-preview — skips one that isn't installed, and writes once where two of them share one file. The prompt names each file first. Then:

tstyles

Arrow keys preview each style live, Enter keeps it, Esc cancels.

Prefer a one-line installer, or on a shell without PSResourceGet? See the bootstrap installer.

umbrella
umbrella
eva
eva
ex-machina
ex-machina
forest
forest
garden-rain
garden-rain
gitbash
gitbash
golden-forest
golden-forest
kitty
kitty
lain
lain
marquee
marquee
neon-rain
neon-rain
rain
rain
snowday
snowday
sober
sober
tombraider
tombraider
koholint
koholint
skyline
skyline
phosphor
phosphor

Documentation

The full guide is in the wiki:

The wiki is generated from docs/wiki/, so changes to it go through a pull request like any other.

Contributing

Bug reports, feature ideas, and new themes are all welcome — see CONTRIBUTING.md. Themes are the easiest way in: pitch one with a theme idea issue, or grab a good first issue.

License

MIT — see LICENSE.

About

Live terminal theme switcher with themes, instant previews, and support for Windows, macOS & Linux.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages