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
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@
6
6
7
7
<palign="center"><i>git integration is available only in powershell via posh-git</i></p>
8
8
9
-
## Theme Installation
9
+
## Installation
10
+
11
+
There are 4 parts to configure: the colors, the powershell prompt, the cmd.exe prompt, and the titlebar color. All of these are optional.
12
+
13
+
**Colors Installation**
10
14
11
15
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.
12
16
1. Open PowerShell, navigate to unzipped `ColorTool` directory, and run `install.cmd`.
@@ -15,37 +19,37 @@
15
19
16
20
For cmd.exe support, perform the same steps above but in a cmd.exe window.
17
21
18
-
## PowerShell prompt
22
+
**PowerShell prompt**
19
23
20
24
1. Install the 1.0 version of posh-git.
21
25
- It's currently prerelease, so you'll need to install it with `Install-Module -Name posh-git -AllowPrerelease -Force`
22
26
- If you don't have an `-AllowPrerelease` flag, upgrade PowerShellGet with `Install-Module -Name PowerShellGet -Force` first.
23
27
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).
24
28
1. Include [this powershell configuration](https://github.com/dracula/powershell/blob/master/theme/dracula-prompt-configuration.ps1) in your PowerShell `$profile` file.<sup>[1](#whats-the-powershell-profile-file"What's the PowerShell `$profile` file?")</sup>
25
29
26
-
## cmd.exe prompt
30
+
**cmd.exe prompt**
27
31
28
32
Set the environment variable `prompt` to `$E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m`
29
33
30
-
## Titlebar color
34
+
**Titlebar color**
31
35
32
36
In Windows 10, the titlebar color can be set system-wide in Settings → Personalization → Colors → Custom color → More → #262835.
33
37
34
38
## Frequently Asked Questions
35
39
36
-
### What's the PowerShell `$profile` file?
40
+
**What's the PowerShell `$profile` file?**
37
41
38
42
This is a PowerShell file that's run when a PowerShell session is started, similar to a `.bashrc`. Type `$profile` in a PowerShell window to see the path. See https://ss64.com/ps/syntax-profile.html for more detail.
39
43
40
-
### After applying the theme, other consoles don't always have the right colors.
44
+
**After applying the theme, other consoles don't always have the right colors.**
41
45
42
46
There are two possible reasons for this:
43
47
44
48
1. Step 3 from the theme installation was not followed; it's a requirement for the way that the windows console properties save settings.
45
49
1. The shortcut used to apply the theme was different from shortcut used to open the console.
46
50
- 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 values in the `Console` key are used.
47
51
48
-
### What's that crazy cmd.exe prompt string?
52
+
**What's that crazy cmd.exe prompt string?**
49
53
50
54
The cmd.exe prompt value can be broken down into the following [ANSI escape sequences](http://ascii-table.com/ansi-escape-sequences.php):
51
55
@@ -57,6 +61,15 @@ The cmd.exe prompt value can be broken down into the following [ANSI escape sequ
57
61
-`› ` - unicode chevron and space
58
62
-`$E[1;37;40m` - normal text with a white foreground and black background
59
63
64
+
## Uninstallation
65
+
66
+
1. Uninstall the colors:
67
+
- Download and unzip [the same archive](https://raw.githubusercontent.com/waf/dracula-cmd/master/dist/ColorTool.zip) you used to install the theme.
68
+
- Run uninstall.cmd
69
+
1. Uninstall the prompts:
70
+
- Remove the configuration from your powershell `$profile`.
71
+
- Delete the `prompt` environment variable.
72
+
60
73
## Team
61
74
62
75
This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/powershell/graphs/contributors).
0 commit comments