Skip to content

Commit daed7f0

Browse files
committed
Simplify installation
1 parent 5cc070a commit daed7f0

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

β€ŽINSTALL.mdβ€Ž

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ A dark theme for the Windows 10 Console, supports both PowerShell and cmd.exe.
66

77
There are 3 parts to configure; all of them are optional:
88

9-
10-
<details><summary><strong>Powershell colors</strong></summary>
9+
<details><summary><strong>Powershell and CMD colors</strong></summary>
1110
<p>
1211

1312
1. Install the prerequisites:
1413
- PSReadLine 2.0 or later. It's installed by default in Windows 10, but you'll most likely [need to upgrade it](https://github.com/lzybkr/PSReadLine#user-content-upgrading). You can verify your PSReadLine version by running `(Get-Module PSReadLine).Version.Major`
1514
- Install git integration (posh-git) with `Install-Module -Name posh-git -AllowPrerelease -Force` . If you don't have an `-AllowPrerelease` flag, upgrade PowerShellGet with `Install-Module -Name PowerShellGet -Force` first. If that still doesn't work, see [this reported fix](https://github.com/dracula/powershell/issues/32#issuecomment-678836529) (thanks @LukeSavefrogs!).
16-
1. [Download and unzip](https://raw.githubusercontent.com/waf/dracula-cmd/master/dist/ColorTool.zip) ColorTool. The [source code](https://github.com/Microsoft/Terminal/tree/master/src/tools/ColorTool) is available from Microsoft.
17-
1. Open PowerShell, navigate to the unzipped `ColorTool` directory, and run `install.cmd`.
15+
1. Double-Click the [console_colors_dracula.reg](console_colors_dracula.reg) and confirm.
1816
1. Include [this powershell configuration](https://github.com/dracula/powershell/blob/master/theme/dracula-prompt-configuration.ps1) in your PowerShell `$profile` file.<sup>[1](https://github.com/dracula/powershell#user-content-profile-explanation)</sup>
1917
1. Right-click on the window titlebar and choose `Properties`, then on the `Font` tab choose Consolas. Click `OK` to save.
2018

β€Žtheme/README.mdβ€Ž

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
https://devblogs.microsoft.com/commandline/understanding-windows-console-host-settings/
2+
3+
The `ScreenColors` property contains the Foreground Color in the last hex-nibble and the Background Color in the penultimate hex-nibble.
4+
5+
The `PopupColors` behave accordingly.
6+
7+
The `ColorTableXX` property has to be inserted in BGR order (instead of RGB), probably something with endianness.
8+
9+
By removing the default overrides for Powershell, we only need to set the colors in one place.
2.31 KB
Binary file not shown.
2.84 KB
Binary file not shown.

0 commit comments

Comments
Β (0)