├── HKCU-Console.reg ├── posh-monokai.png ├── register-console-font.reg ├── .gitmodules ├── .gitignore ├── .gitattributes ├── README.md └── posh-monokai.ps1 /HKCU-Console.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntwb/posh-monokai/HEAD/HKCU-Console.reg -------------------------------------------------------------------------------- /posh-monokai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntwb/posh-monokai/HEAD/posh-monokai.png -------------------------------------------------------------------------------- /register-console-font.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ntwb/posh-monokai/HEAD/register-console-font.reg -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "source-code-pro"] 2 | path = source-code-pro 3 | url = git://github.com/adobe/source-code-pro.git 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Source: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 2 | 3 | ############ 4 | ## Windows 5 | ############ 6 | 7 | # Windows image file caches 8 | Thumbs.db 9 | ehthumbs.db 10 | 11 | # Folder config file 12 | Desktop.ini 13 | 14 | # Recycle Bin used on file shares 15 | $RECYCLE.BIN/ 16 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Windows PowerShell Monokai Console Color Scheme 2 | 3 | ## FYI 4 | I'm not really maintaining this repo anymore, I'd suggest you check these four repo's: 5 | 6 | * https://github.com/lukesampson/concfg <- Configure and backup your console colours 7 | * https://github.com/lukesampson/pshazz <- Configurable prompts, VCS, Aliases, SSH 8 | * https://github.com/lukesampson/scoop <- Easily install and remove open source console applications (PHP/NodeJS/Ruby etc) 9 | * https://github.com/lukesampson/scoop-extras <- Same as Scoop but for GUI and closed source apps 10 | 11 | ## Installation 12 | * Clone the git repo - `git clone git://github.com/ntwb/posh-monokai.git` or [download it](https://github.com/ntwb/posh-monokai/zipball/master) 13 | 14 | * Download [Adobe Source Code Pro](https://github.com/adobe-fonts/source-code-pro) font and install as [per instructions](http://www.adobe.com/products/type/install-instructions.html) 15 | 16 | * Merge the `HKCU-Console.reg` registry file to register the Monokai colours for PowerShell. 17 | 18 | * Merge the `register-console-font.reg` registry file to register Adobe Source Code Pro as a 'console' font. 19 | 20 | * Call `posh-monokai.ps1` from your PowerShell Profile Script 21 | 22 | ## Screenshots 23 | ![posh-monokai][1] 24 | 25 | ### Credits 26 | Inspired by [Monokai](https://web.archive.org/web/20170115153838/http://www.monokai.nl/blog/2006/07/15/textmate-color-theme/) 27 | 28 | ### References 29 | [TechNet: HKCU:\Console](http://technet.microsoft.com/en-us/library/cc978570.aspx) 30 | 31 | [1]: https://raw.github.com/ntwb/posh-monokai/master/posh-monokai.png 32 | -------------------------------------------------------------------------------- /posh-monokai.ps1: -------------------------------------------------------------------------------- 1 | ############################################################################################## 2 | # posh-monokai - Windows PowerShell Monokai Console Color Scheme 3 | # https://github.com/ntwb/posh-monokai 4 | ############################################################################################## 5 | 6 | Push-Location 7 | Set-Location HKCU:\Console 8 | Set-Location '.\Windows PowerShell' 9 | 10 | Write-Host -nonewline -ForegroundColor Cyan "--> [posh-monokai] " 11 | 12 | Write-Host -nonewline -ForegroundColor Black "Black " -BackgroundColor Black 13 | Set-ItemProperty . ColorTable00 -type DWORD -value 0x003e4849 14 | 15 | Write-Host -nonewline -ForegroundColor DarkBlue "DarkBlue " -BackgroundColor Black 16 | Set-ItemProperty . ColorTable01 -type DWORD -value 0x00969483 17 | 18 | Write-Host -nonewline -ForegroundColor DarkGreen "DarkGreen " -BackgroundColor Black 19 | Set-ItemProperty . ColorTable02 -type DWORD -value 0x002ee2a6 20 | 21 | Write-Host -nonewline -ForegroundColor DarkCyan "DarkCyan " -BackgroundColor Black 22 | Set-ItemProperty . ColorTable03 -type DWORD -value 0x00efd966 23 | 24 | Write-Host -nonewline -ForegroundColor DarkRed "DarkRed " -BackgroundColor Black 25 | Set-ItemProperty . ColorTable04 -type DWORD -value 0x007226f9 26 | 27 | Write-Host -nonewline -ForegroundColor DarkMagenta "DarkMagenta " -BackgroundColor Black 28 | Set-ItemProperty . ColorTable05 -type DWORD -value 0x007226f9 29 | 30 | Write-Host -nonewline -ForegroundColor DarkYellow "DarkYellow " -BackgroundColor Black 31 | Set-ItemProperty . ColorTable06 -type DWORD -value 0x0074dbe6 32 | 33 | Write-Host -ForegroundColor Gray "Gray " -BackgroundColor Black 34 | Set-ItemProperty . ColorTable07 -type DWORD -value 0x00c2cfcf 35 | 36 | Write-Host -nonewline -ForegroundColor Cyan "--> [posh-monokai] " 37 | 38 | Write-Host -nonewline -ForegroundColor DarkGray "DarkGray " -BackgroundColor Black 39 | Set-ItemProperty . ColorTable08 -type DWORD -value 0x00222827 40 | 41 | Write-Host -nonewline -ForegroundColor Blue "Blue " -BackgroundColor Black 42 | Set-ItemProperty . ColorTable09 -type DWORD -value 0x00d28b26 43 | 44 | Write-Host -nonewline -ForegroundColor Green "Green " -BackgroundColor Black 45 | Set-ItemProperty . ColorTable10 -type DWORD -value 0x002ee2a6 46 | 47 | Write-Host -nonewline -ForegroundColor Cyan "Cyan " -BackgroundColor Black 48 | Set-ItemProperty . ColorTable11 -type DWORD -value 0x00efd966 49 | 50 | Write-Host -nonewline -ForegroundColor Red "Red " -BackgroundColor Black 51 | Set-ItemProperty . ColorTable12 -type DWORD -value 0x007226f9 52 | 53 | Write-Host -nonewline -ForegroundColor Magenta "Magenta " -BackgroundColor Black 54 | Set-ItemProperty . ColorTable13 -type DWORD -value 0x007226f9 55 | 56 | Write-Host -nonewline -ForegroundColor Yellow "Yellow " -BackgroundColor Black 57 | Set-ItemProperty . ColorTable14 -type DWORD -value 0x0074dbe6 58 | 59 | Write-Host -ForegroundColor White "White " -BackgroundColor Black 60 | Set-ItemProperty . ColorTable15 -type DWORD -value 0x00f2f8f8 61 | 62 | Set-ItemProperty . CursorSize -type DWORD -value 0x00000019 # small 63 | Set-ItemProperty . FaceName -type STRING -value "Source Code Pro" #https://github.com/adobe/source-code-pro 64 | Set-ItemProperty . FontFamily -type DWORD -value 0x00000036 65 | Set-ItemProperty . FontSize -type DWORD -value 0x00120000 # 18pt 66 | Set-ItemProperty . FontWeight -type DWORD -value 0x00000190 # Normal 67 | Set-ItemProperty . FullScreen -type DWORD -value 0x00000000 68 | Set-ItemProperty . HistoryBufferSize -type DWORD -value 0x00000063 69 | Set-ItemProperty . HistoryNoDup -type DWORD -value 0x00000001 70 | Set-ItemProperty . InsertMode -type DWORD -value 0x00000001 71 | Set-ItemProperty . NumberOfHistoryBuffers -type DWORD -value 0x00000004 72 | Set-ItemProperty . PopupColors -type DWORD -value 0x000000f8 # f= White | 8 = DarkGray 73 | Set-ItemProperty . QuickEdit -type DWORD -value 0x00000001 74 | Set-ItemProperty . ScreenBufferSize -type DWORD -value 0x03e7007d #ScreenBufferSize 125 w x 999 h 75 | Set-ItemProperty . ScreenColors -type DWORD -value 0x0000008f # 8 = DarkGray | f = White 76 | Set-ItemProperty . WindowSize -type DWORD -value 0x0028007d #WindowSize 125 w x 40 h 77 | 78 | Pop-Location 79 | 80 | $Host.PrivateData.DebugBackgroundColor = "DarkGray" 81 | $Host.PrivateData.ErrorBackgroundColor = "DarkGray" 82 | --------------------------------------------------------------------------------