You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,15 @@
9
9
## Theme Installation
10
10
11
11
1.[Download and extract](https://raw.githubusercontent.com/waf/dracula-cmd/master/dist/ColorTool.zip) ColorTool. The [source code](https://github.com/Microsoft/console/tree/master/tools/ColorTool) is available from Microsoft.
12
-
1. Open cmd.exe and run `ColorTool.exe -b Dracula.itermcolors`. The Dracula.itermcolors file is an iterm theme modified to work for the windows console.
12
+
1. Open cmd.exe and run `ColorTool.exe -b Dracula.ini`.
13
13
1. Right-click on the window titlebar and choose `Properties`, then on the `Font` tab choose Consolas. Click `OK` to save.
14
14
- Note that this step is required, even if your font is already set to Consolas, due to the way that the windows console saves its settings.
15
15
16
16
Perform the same steps above, but in a powershell window, for powershell support.
17
17
18
18
## cmd.exe prompt
19
19
20
-
1. After installing the theme, set the `prompt` environment variable to `$E[0;32;40mβ $E[0;36;40m$p$E[0;35;40mβΊ $E[0;38;40m` to get the prompt in the screenshot.
20
+
1. After installing the theme, set the `prompt` environment variable to `$E[1;32;40mβ $E[1;36;40m$p$E[1;35;40mβΊ $E[1;37;40m` to get the prompt in the screenshot.
21
21
- In the start menu, search for "Edit environment variables for your account."
22
22
- Add a new user variable named `prompt` with the above value.
23
23
@@ -26,14 +26,23 @@ Perform the same steps above, but in a powershell window, for powershell support
26
26
1. Install the 1.0 version of posh-git.
27
27
- It's currently prerelease, so you'll need to install it with `Install-Module -Name posh-git -AllowPrerelease -Force`
28
28
- If you don't have an `-AllowPrerelease` flag, upgrade PowerShellGet with `Install-Module -Name PowerShellGet -Force` first.
29
-
1. Ensure the latest version of PSReadLine is installed. 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).
30
-
1.Append the following lines to your [PowerShell $profile file](https://ss64.com/ps/syntax-profile.html):
29
+
1. Ensure the latest version of PSReadLine (2.0 or later) is installed. 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).
30
+
1.Put the following lines in your [PowerShell $profile file](https://ss64.com/ps/syntax-profile.html):
@@ -53,19 +62,19 @@ There are two possible reasons for this:
53
62
54
63
1. Step 3 from the theme installation was not followed; it's a requirement for the way that the windows console properties save settings.
55
64
1. The shortcut used to apply the theme was different from shortcut used to open the console.
56
-
- The windows console stores its font / color settings in per-shortcut. You can see / delete the special cases in the registry, in `\HKEY_CURRENT_USER\Console\` so the defaults are used.
65
+
- The windows console stores its font / color settings in per-shortcut. You can see / delete the special cases in the registry. Go to `\HKEY_CURRENT_USER\Console\`and delete the subkeys so the default is used.
57
66
58
67
### What's that crazy cmd.exe prompt string?
59
68
60
69
The cmd.exe prompt value can be broken down into the following [ANSI escape sequences](http://ascii-table.com/ansi-escape-sequences.php):
61
70
62
-
-`$E[0;32;40m` - normal text with a green foreground and black background
71
+
-`$E[1;32;40m` - normal text with a green foreground and black background
63
72
-`β ` - unicode arrow and space
64
-
-`$E[0;36;40m` - normal text with a cyan foreground and black background
73
+
-`$E[1;36;40m` - normal text with a cyan foreground and black background
65
74
-`$p` - current drive and path. See `prompt /?` output for additional values
66
-
-`$E[0;35;40m` - normal text with a magenta foreground and black background
75
+
-`$E[1;35;40m` - normal text with a magenta foreground and black background
67
76
-`βΊ ` - unicode chevron and space
68
-
-`$E[0;38;40m` - normal text with a default foreground and black background
77
+
-`$E[1;37;40m` - normal text with a white foreground and black background
0 commit comments