/iTerm2WindowsTerminal

PowerShell script that converts iTerm2 colors to Windows Terminal colors

Primary LanguagePowerShellMIT LicenseMIT

iTerm2 Colors to Windows Terminal colors

The ConvertFrom-iTerm2.ps1 script takes an iTerm2 color scheme and outputs JSON you can put into a Windows Terminal color scheme. You either specify an http(s) URL to an itermcolors file which it will download and output JSON, or pass it an already downloaded file. In case of the former use the -ColorFileURL switch, in case of the latter use the -ColorFile switch.

You can find iTerm2 color schemes here for instance.

Example:

Running the Script

The above pulls the Ubuntu colour theme, which I can input into Windows Terminal to get something like this:

Ubuntu colors in Windows Terminal

See this blog post for the background on this.

Tested with PowerShell 7/ PowerShell Core so it works on Linux & macOS.