-
-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port for PowerShell #90
Comments
Thanks for the great detailed feature request 👍 I'm always happy for any help to get a new port project started. I'll import my Win7 VirtualBox image and install PowerShell to see how their color system works to provide the mapping. As long as there is no official repository, users can transitionally use the content in this issue to use a theme prototype locally. Please note that my current life situation doesn't allow me to spend as much time on my projects as before like announced on Twitter so I've added this port project to the Backlog Icebox for the time being. It might take some time to test things out, but I'll try to reserve some free time on the weekends. |
Great! No worries, there is no rush! I'm loving the VSCode and Vim themes that you have put together! |
Hi @arcticicestudio @scottwillmoore, I've been in this same pickle for some time now, but I've found a great solution I'd like to share here: There's an official Windows tool to deal with themes in Powershell/Command prompt, and it turns out it supports Just download the Nord.itermcolors file from the official Arctic Studio repo, then download the ColorTool tool from the official Windows repo, and simply do: .\path\to\ColorTool.exe -b \path\to\Nord.itermcolors There you go, a perfect Arctic Studio Nord theme port for Powershell and Command prompt :) Update for 2020: |
That |
@NerdsvilleCEO while reading a bit more in the repo README I found out that the tool still exists, the reference just changed because of repo structure changed: ColorTool. Don't know if it still works as described in this issue. |
This works like a charm. |
Description
Been playing around with PowerShell more and more at my job, home -- thought it would be great if we could work on creating a theme for Windows PowerShell - more specifically
powershell.exe
.In addition to PowerShell - we could also aim to provide a theme for the Windows Command Prompt as well as a Windows Subsystem for Linux (WSL). All of these consoles use a similar terminal emulator, which means the method we use to create and set the theme will be similar - however it appears PowerShell defaults to a slightly different theme. In addition the WSL theme would need to be tailored for a Linux environment (possibly a direct copy of colour mapping used in other Linux terminal emulators).
From left to right below: PowerShell, Command Prompt, WSL.
Perhaps we should focus on the theme for PowerShell first - and create separate issues at a later date for both Command Prompt and WSL.
PowerShell
The PowerShell theme can be set using the interface above, or using a tool such as
concfg
(which allows themes to created using JSON), or by creating a custom PowerShell script which can be executed. We could use a mix of the methods mentioned above - I am more than happy to help with this part of the process.The PowerShell colours can be seen above (middle window), but in addition I have created a script to display the various colours.
The output of this script can be seen below.
I personally believe that we should try to closely mimic the original PowerShell colour mapping - as these colours are used throughout existing PowerShell scripts and applications. Meaning could be lost if the colours were redefined (e.g. red for errors, yellow for warnings, etc).
Possibly the most horrifying part - is that PowerShell itself doesn't appear to adhere to it's own colour key with is provided in the
System.ConsoleColor
enun - just look atDarkMagenta
orDarkYellow
... My advice would be to match the colour mapping described in the enum - and then adjust the Screen Text and Screen Background settings to the colours that you would prefer (as seen in the settings dialog above).For further reference - you can look at other PowerShell themes created for
concfg
. The JSON used to describe the default PowerShell theme can also be found in theconcfg
repository.I am more than happy to create the theme and scripts required - but it would be great if you could define the colour mapping that you believe would suit the Nord theme the best. It may be better to get some screenshots of some applications for real world examples of the colour being used. The theme can always of course be adjusted over time.
The text was updated successfully, but these errors were encountered: