dracula / powershell Goto Github PK
View Code? Open in Web Editor NEW🧛🏻♂️ Dark theme for PowerShell and cmd.exe
Home Page: https://draculatheme.com/powershell
License: MIT License
🧛🏻♂️ Dark theme for PowerShell and cmd.exe
Home Page: https://draculatheme.com/powershell
License: MIT License
Hi guys. Loving the theme. This is more of a question than an issue, but I wasn't sure where to ask.
In your screenshots you've replaced your home path (C:\Users...) with a tilde character ~, which is how I'd like my prompt to work as well.
Mine keeps showing the full path - not sure if based on your installation instructions it should show the tilde or if I need to do something else. Any help would be much appreciated!
Right now, the console settings is the iterm color file. However, it appears that in some cases it does not contain different versions for dark/light colors:
That means we only have 11 colors, when we could add some additional colors. Most notably the comment color is missing.
See the official Dracula color palatte: https://github.com/dracula/dracula-theme#color-palette
After applying this theme, ctrl + C stopped working while inside powershell and cmd.
I did everything in order from "Colors Installation -> PowerShell Prompt -> CMD.exe Prompt -> Windows Titlebar Color"...
No error encountered during installation...
When CMD or Powershell is opened, without typing anything CTRL + C works fine, but when running an console application, ctrl + c does not exit the app...
Tried on:
In all cases, ctrl + c does not work
If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug.
I am following pari passu the instructions in README.md to install Dracula theme on PoSh. When I execute install.cmd, however, my terminal is abhorrently pink:
Even when I open a new terminal, its background color is pink. When I go to Properties page and select the right black color tone, all works as expected.
I'm on Windows 10 v1909 running PowerShell 5.1 Build 18362 Rev. 145
Description of the issue
I followed all of the instructions, but when I try to set the environment variable prompt, I get this error:
At line:1 char:5
+ $E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m
+ ~
Missing ']' after array index expression.
At line:1 char:18
+ $E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m
+ ~
Missing ']' after array index expression.
At line:1 char:44
+ $E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m
+ ~
Missing ']' after array index expression.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndSquareBracket
Version Information
Please provide the output of this PowerShell command:
(Get-Module PSReadline).Version; (Get-Module posh-git).Version
Major Minor Build Revision
----- ----- ----- --------
2 0 0 -1
How do you uninstall this theme and reset to the default powershell theme ?
How can i add the git branching to the prompt in CMD.exe ?
When copying the prompt from draculatheme.com/powershell, the symbols on the prompt are not displayed correctly. It looks like they somehow are converted when creating the website, because symbols on the Github site are correct.
Major Minor Build Revision
----- ----- ----- --------
2 0 0 -1
draculatheme.com/powershell has some stray </p>
in it as can be seen on the screenshot above.
So this is kind of a question rather than an issue but, is it possible to have the ~ (Tilda, home symbol) (like on Linux) instead of C:\Users\username on the cmd theme?
Help me fix this...
The property 'Text' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:14 char:50
~~~~~~~~~~~~
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:15 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:16 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
The property 'Text' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:17 char:50
~~~~~~~~~~~~
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:18 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyAssignmentException
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:20 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:21 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
The property 'ForegroundColor' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\grzeg\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:22 char:1
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
I got install issues, here are my steps
This worked
PS C:\Users\Owner\ColorTool> ./install.cmd
NuGet installed successfully
PS C:\Windows\system32> Install-Module -Name NuGet
But then
PS C:\Windows\system32> Install-Module -Name PowerShellGet -Force
The error
PackageManagement\Install-Package : The module PowerShellGet cannot be installed because the catalog signature in PowerShellGet.cat does not match the hash generated from the module.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
$null = PackageManagement\Install-Package @PSBoundParameters
CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
Exception
+ FullyQualifiedErrorId : InvalidCatalogSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Description of the issue
Hello, I followed the instructions from https://draculatheme.com/powershell and after posting my Dracula configuration into $profile colors seem to look fine but the errors appear.
Screenshots
https://prnt.sc/whcvma
Version Information
v1.0 > (Get-Module PSReadline).Version; (Get-Module posh-git).Version
Major Minor Build Revision
2 2 0 -1
0 7 3 -1
also I'm adding my powershell configuration (had to copy it and change it to txt because Github doesn't support that kind of file formats.
Microsoft.PowerShell_profile.txt
Description of the issue
When loading the Dracula Theme in PowerShell 5, it usually takes about ~500ms. When loading the Dracula Them in PowerShell 7, it usually takes about ~1200ms.
Screenshots
PowerShell 5
PowerShell 7
Version Information
Please provide the output of this PowerShell command:
(Get-Module PSReadline).Version; (Get-Module posh-git).Version
PowerShell 5
› (Get-Module PSReadline).Version; (Get-Module posh-git).Version
Major Minor Build Revision
----- ----- ----- --------
2 0 0 -1
1 0 0 -1
PowerShell 7
› (Get-Module PSReadline).Version; (Get-Module posh-git).Version
Major Minor Build Revision
----- ----- ----- --------
2 1 0 -1
1 0 0 -1
MS has a new terminal! We should support it in this repository.
If you're reporting an UI issue, make sure you take a screenshot that shows the actual bug.
I want to show you a small video about this.
Thank you.
When I apply this theme, it looks like this:
my $PROFILE
# Ensure that Get-ChildItemColor is loaded
Import-Module Get-ChildItemColor
# Set l and ls alias to use the new Get-ChildItemColor cmdlets
Set-Alias l Get-ChildItemColor -Option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope
# Helper function to show Unicode characters
function U
{
param
(
[int] $Code
)
if ((0 -le $Code) -and ($Code -le 0xFFFF))
{
return [char] $Code
}
if ((0x10000 -le $Code) -and ($Code -le 0x10FFFF))
{
return [char]::ConvertFromUtf32($Code)
}
throw "Invalid character code $Code"
}
# Ensure posh-git is loaded
Import-Module -Name posh-git
# Dracula readline configuration. Requires version 2.0, if you have 1.2 convert to `Set-PSReadlineOption -TokenType`
Set-PSReadlineOption -Color @{
"Command" = [ConsoleColor]::Green
"Parameter" = [ConsoleColor]::Gray
"Operator" = [ConsoleColor]::Magenta
"Variable" = [ConsoleColor]::White
"String" = [ConsoleColor]::Yellow
"Number" = [ConsoleColor]::Blue
"Type" = [ConsoleColor]::Cyan
"Comment" = [ConsoleColor]::DarkCyan
}
# Dracula Prompt Configuration
Import-Module posh-git
$GitPromptSettings.DefaultPromptPrefix.Text = "$([char]0x2192) " # arrow unicode symbol
$GitPromptSettings.DefaultPromptPrefix.ForegroundColor = [ConsoleColor]::Green
$GitPromptSettings.DefaultPromptPath.ForegroundColor =[ConsoleColor]::Cyan
$GitPromptSettings.DefaultPromptSuffix.Text = "$([char]0x203A) " # chevron unicode symbol
$GitPromptSettings.DefaultPromptSuffix.ForegroundColor = [ConsoleColor]::Magenta
# Dracula Git Status Configuration
$GitPromptSettings.BeforeStatus.ForegroundColor = [ConsoleColor]::Blue
$GitPromptSettings.BranchColor.ForegroundColor = [ConsoleColor]::Blue
$GitPromptSettings.AfterStatus.ForegroundColor = [ConsoleColor]::Blue
# Ensure oh-my-posh is loaded
Import-Module -Name oh-my-posh
# Set the default prompt theme
Set-Theme agnoster
Description of the issue
When I try to open PowerShell I have this crazy String sequence, but on CMD seems to work fine
Screenshots
Version Information
(Get-Module PSReadline).Version; (Get-Module posh-git).Version
Major Minor Build Revision
----- ----- ----- ------
2 0 0 -1
1 0 0 -1
1 0 0 -1
During my setup, I set my prompt
environment variable to $E[1;32;40m→ $E[1;36;40m$p$E[1;35;40m› $E[1;37;40m
, as specified in the setup instructions. I decided that I don't like the arrow, so I deleted the environment variable, but my prompt did not revert to the old style. I also tried fully uninstalling the theme through the uninstall script and reinstalling - that didn't work either. Now I've re-added the prompt
environment variable with a different value, but my prompt still will not change - it seems to be stuck as the initial value I first set it to.
Any ideas on how to fix this?
Hi there, i'm pretty new to using the command line so I probably am making a bunch of rookie mistakes, but I can't for the life of me figure out how to run the ColorTool.exe -b Dracula.ini line in Powershell. I've attached a really embarrassing screenshot of my sad attempts at getting it to work haha. The directory I cd'd into is the unzipped version of the ColorTool file.
Thanks for the theme! Is there any way to apply this to powershell too?
Can someone please help me with uninstalling this?
I ran uninstall.cmd
but I cannot figure out how to exactly delete the environment variable profile in cmd.
Please help.
I followed the install instructions and this is the error I get. I tried -TokenType instead, but I get the same error for this parameter as well.
The Microsoft.PowerShell_profile.ps1 file contents are just the Dracula config, nothing else.
I will appreciate your help with this because I don't see what I'm doing wrong. Thank you.
after installing and following the steps, everything works normally, but when you restart the console, it turns white again, with only the background with the theme color
Hi, since windows terminal has been released.. Is there any install guide for this? :)
I joined Release Insider Program. My system version is Version 1903 18362.53.
The color config is invalid after I upgrading from 1809 to 1903.
I get this warning in powershell after doing all the installation steps: "git command could not be found. Please create an alias or add it to your PATH."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.