Skip to content

Commit

Permalink
Simplify installation
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hap committed Mar 25, 2024
1 parent 5cc070a commit daed7f0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 2 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ A dark theme for the Windows 10 Console, supports both PowerShell and cmd.exe.

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


<details><summary><strong>Powershell colors</strong></summary>
<details><summary><strong>Powershell and CMD colors</strong></summary>
<p>

1. Install the prerequisites:
- 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`
- 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!).
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.
1. Open PowerShell, navigate to the unzipped `ColorTool` directory, and run `install.cmd`.
1. Double-Click the [console_colors_dracula.reg](console_colors_dracula.reg) and confirm.
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>
1. Right-click on the window titlebar and choose `Properties`, then on the `Font` tab choose Consolas. Click `OK` to save.

Expand Down
9 changes: 9 additions & 0 deletions theme/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
https://devblogs.microsoft.com/commandline/understanding-windows-console-host-settings/

The `ScreenColors` property contains the Foreground Color in the last hex-nibble and the Background Color in the penultimate hex-nibble.

The `PopupColors` behave accordingly.

The `ColorTableXX` property has to be inserted in BGR order (instead of RGB), probably something with endianness.

By removing the default overrides for Powershell, we only need to set the colors in one place.
Binary file added theme/console_colors_default.reg
Binary file not shown.
Binary file added theme/console_colors_dracula.reg
Binary file not shown.

0 comments on commit daed7f0

Please sign in to comment.