Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dracula/powershell

πŸ§›πŸ»β€β™‚οΈ Dark theme for PowerShell and cmd.exe
https://github.com/dracula/powershell

cmd conhost dracula dracula-theme powershell

Last synced: 4 days ago
JSON representation

πŸ§›πŸ»β€β™‚οΈ Dark theme for PowerShell and cmd.exe

Awesome Lists containing this project

README

        

# Dracula for the PowerShell Console

> A dark theme for the Windows 10 Console, supports both [PowerShell](https://github.com/PowerShell/PowerShell) and [cmd.exe](https://en.wikipedia.org/wiki/Cmd.exe).

![Screenshot](./screenshot.png)

git integration is available only in powershell via posh-git

## Installation

See our [installation instructions here](https://github.com/dracula/powershell/blob/master/INSTALL.md).

## Support for other terminals

This repo also contains a [theme for the new Windows Terminal from Microsoft](https://github.com/dracula/powershell/blob/master/theme/Windows%2010%20Terminal%20Dracula%20Theme.json), as well as a [theme for ConEmu](https://github.com/dracula/powershell/blob/master/theme/ConEmu-Dracula-Theme.xml). An alternate version of the ConEmu theme is available at [dracula/conemu](https://github.com/dracula/conemu).

## 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



## Uninstallation

1. Uninstall the colors:
- Download and unzip [the same archive](https://raw.githubusercontent.com/waf/dracula-cmd/master/dist/ColorTool.zip) you used to install the theme.
- Run uninstall.cmd
1. Uninstall the prompts:
- PowerShell prompt: remove the configuration from your powershell `$profile`.
- CMD.exe prompt: delete the `prompt` environment variable.

## Team

This theme is maintained by the following person(s) and a bunch of [awesome contributors](https://github.com/dracula/powershell/graphs/contributors).

| [![Will Fuqua](https://avatars3.githubusercontent.com/u/97195?v=3&s=70)](https://github.com/waf) | [![Zeno Rocha](https://avatars2.githubusercontent.com/u/398893?v=3&s=70)](https://github.com/zenorocha) |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| [Will Fuqua](https://github.com/waf) | [Zeno Rocha](https://github.com/zenorocha) |

## Contributors

[Tim KilΓ₯ker](https://github.com/TKilaker) - Contributed an updated release of ColorTool.exe.

## Community

- [Twitter](https://twitter.com/draculatheme) - Best for getting updates about themes and new stuff.
- [GitHub](https://github.com/dracula/dracula-theme/discussions) - Best for asking questions and discussing issues.
- [Discord](https://draculatheme.com/discord-invite) - Best for hanging out with the community.

## License

[MIT License](./LICENSE)