Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rakheshster/iterm2windowsterminal

PowerShell script that converts iTerm2 colors to Windows Terminal colors
https://github.com/rakheshster/iterm2windowsterminal

iterm2 powershell terminal windows

Last synced: 4 days ago
JSON representation

PowerShell script that converts iTerm2 colors to Windows Terminal colors

Awesome Lists containing this project

README

        

# 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](https://iterm2colorschemes.com) for instance.

Example:

![Running the Script](Screenshot.png)

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

![Ubuntu colors in Windows Terminal](Screenshot2.png)

See [this blog post](https://rakhesh.com/powershell/converting-iterm2-colours-to-windows-terminal-colors/) for the background on this.

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