Skip to content

Instantly share code, notes, and snippets.

@noelbundick
Last active October 5, 2023 04:20
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noelbundick/d7d67c1cc9cae8a1cb93240dc7bbe78c to your computer and use it in GitHub Desktop.
Save noelbundick/d7d67c1cc9cae8a1cb93240dc7bbe78c to your computer and use it in GitHub Desktop.
Solarized Dark for Bash on Windows
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Windows Registry Editor Version 5.00
; Adapted from https://github.com/neilpa/cmd-colors-solarized/blob/master/solarized-dark.reg
; Registry file that maps the solarized palette to the 16 avaliable colors
; in a Windows command prompt. Note, hex values in the table are RGB but byte
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>
;
; Solarized color table from http://ethanschoonover.com/solarized.
;
;| SOLARIZED | HEX | ANSI | TERMCOL | cmd.exe | PowerShell | ColorTable | DWORD |
;|-----------|---------|-----------|-----------|-------------|-------------|------------|----------|
;| base03 | #002b36 | ESC[0;30m | brblack | Black | Black | 00 | 00362b00 |
;| base02 | #073642 | ESC[1;30m | black | Gray | DarkGray | 08 | 00423607 |
;| base01 | #586e75 | ESC[0;32m | brgreen | Green | DarkGreen | 02 | 00756e58 |
;| base00 | #657b83 | ESC[0;33m | bryellow | Yellow | DarkYellow | 06 | 00837b65 |
;| base0 | #839496 | ESC[0;34m | brblue | Blue | DarkBlue | 01 | 00969483 |
;| base1 | #93a1a1 | ESC[0;36m | brcyan | Aqua | DarkCyan | 03 | 00a1a193 |
;| base2 | #eee8d5 | ESC[0;37m | white | White | Gray | 07 | 00d5e8ee |
;| base3 | #fdf6e3 | ESC[1;37m | brwhite | BrightWhite | White | 15 | 00e3f6fd |
;| yellow | #b58900 | ESC[1;33m | yellow | LightYellow | Yellow | 14 | 000089b5 |
;| orange | #cb4b16 | ESC[0;31m | brred | Red | DarkRed | 04 | 00164bcb |
;| red | #dc322f | ESC[1;31m | red | LightRed | Red | 12 | 002f32dc |
;| magenta | #d33682 | ESC[1;35m | magenta | LightPurple | Magenta | 13 | 008236d3 |
;| violet | #6c71c4 | ESC[0;35m | brmagenta | Purple | DarkMagenta | 05 | 00c4716c |
;| blue | #268bd2 | ESC[1;34m | blue | LightBlue | Blue | 09 | 00d28b26 |
;| cyan | #2aa198 | ESC[1;36m | cyan | LightAqua | Cyan | 11 | 0098a12a |
;| green | #859900 | ESC[1;32m | green | LightGreen | Green | 10 | 00009985 |
;
[HKEY_CURRENT_USER\Console\%SystemRoot%_System32_bash.exe]
"ColorTable00"=dword:00362b00
"ColorTable01"=dword:00969483
"ColorTable02"=dword:00756e58
"ColorTable03"=dword:00a1a193
"ColorTable04"=dword:00164bcb
"ColorTable05"=dword:00c4716c
"ColorTable06"=dword:00837b65
"ColorTable07"=dword:00d5e8ee
"ColorTable08"=dword:00423607
"ColorTable09"=dword:00d28b26
"ColorTable10"=dword:00009985
"ColorTable11"=dword:0098a12a
"ColorTable12"=dword:002f32dc
"ColorTable13"=dword:008236d3
"ColorTable14"=dword:000089b5
"ColorTable15"=dword:00e3f6fd
"ScreenColors"=dword:00000001
"PopupColors"=dword:000000f6
[HKEY_CURRENT_USER\Console\Bash on Ubuntu on Windows]
"ColorTable00"=dword:00362b00
"ColorTable01"=dword:00969483
"ColorTable02"=dword:00756e58
"ColorTable03"=dword:00a1a193
"ColorTable04"=dword:00164bcb
"ColorTable05"=dword:00c4716c
"ColorTable06"=dword:00837b65
"ColorTable07"=dword:00d5e8ee
"ColorTable08"=dword:00423607
"ColorTable09"=dword:00d28b26
"ColorTable10"=dword:00009985
"ColorTable11"=dword:0098a12a
"ColorTable12"=dword:002f32dc
"ColorTable13"=dword:008236d3
"ColorTable14"=dword:000089b5
"ColorTable15"=dword:00e3f6fd
"ScreenColors"=dword:00000001
"PopupColors"=dword:000000f6
@gmoshkin
Copy link

gmoshkin commented Nov 9, 2018

I think ESC[1;XXm are supposed to be bright colors and ESC[0;XXm -- regular ones. I like it better that way anyway.
Also I was wondering where you found information on what these variables mean (e.g. ScreenColors and PopupColors), because I'm trying to troubleshoot something on my machine, and can't find any info on these registry entries.

@drewwells
Copy link

The ubuntu shortcut does not use this path, I had to edit this to modify the following path [HKEY_CURRENT_USER\Console\C:_Program Files_WindowsApps_CanonicalGroupLimited.UbuntuonWindows_1804.2019.521.0_x64__79rhkp1fndgsc_ubuntu.exe]

@Smasherr
Copy link

Smasherr commented Mar 19, 2020

Hmm.. for me it doesn't really look appropriately (in comparison to https://cloud.githubusercontent.com/assets/2618447/6316862/70f58fb6-ba03-11e4-82c9-c083bf9a6574.png):
image

@fujisan43
Copy link

it's Solarized Dark for Bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment