Git Product home page Git Product logo

powershell's Introduction

Dracula for the PowerShell Console

A dark theme for the Windows 10 Console, supports both PowerShell and cmd.exe.

Screenshot

git integration is available only in powershell via posh-git

Theme Installation

  1. Download and unzip ColorTool. The source code is available from Microsoft.
  2. Open PowerShell, navigate to unzipped ColorTool directory, and run ColorTool.exe -b Dracula-ColorTool.itermcolors.
  3. Right-click on the window titlebar and choose Properties, then on the Font tab choose Consolas. Click OK to save.
    • 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.

For cmd.exe support, perform the same steps above but in a cmd.exe window.

PowerShell prompt

  1. Install the 1.0 version of posh-git.
    • It's currently prerelease, so you'll need to install it 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.
  2. 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.
  3. Include this powershell configuration in your PowerShell $profile file.1

cmd.exe prompt

Set the environment variable prompt to $E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m

Titlebar color

In Windows 10, the titlebar color can be set system-wide in Settings → Personalization → Colors → Custom color → More → #262835.

Frequently Asked Questions

What's the PowerShell $profile file?

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.

After applying the theme, other consoles don't always have the right colors.

There are two possible reasons for this:

  1. Step 3 from the theme installation was not followed; it's a requirement for the way that the windows console properties save settings.
  2. The shortcut used to apply the theme was different from shortcut used to open the console.
    • 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.

What's that crazy cmd.exe prompt string?

The cmd.exe prompt value can be broken down into the following ANSI escape sequences:

  • $E[1;32;40m - normal text with a green foreground and black background
  • - unicode arrow and space
  • $E[1;36;40m - normal text with a cyan foreground and black background
  • $p - current drive and path. See prompt /? output for additional values
  • $E[1;35;40m - normal text with a magenta foreground and black background
  • - unicode chevron and space
  • $E[1;37;40m - normal text with a white foreground and black background

Team

This theme is maintained by the following person(s) and a bunch of awesome contributors.

Will Fuqua Zeno Rocha
Will Fuqua Zeno Rocha

Contributors

Tim Kilåker - Contributed an updated release of ColorTool.exe.

License

MIT License

powershell's People

Contributors

waf avatar

Watchers

Adam Duvick avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.