5
3
With PowerShell 5.0
, there are lot of customization options.
Presently I have created my own color scheme.
But I couldn't figure it out how to set these color options permanently.
Set-PSReadlineOption -TokenKind Operator -ForegroundColor "Magenta"
Set-PSReadlineOption -TokenKind Command -ForegroundColor "DarkYellow"
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor "Magenta"
Now I kept these commands in Profile
script, so that they will be loaded automatically, however it doesn't work in all cases when the shell is reset and if I want to load another Profile
. Irrespective of profiles, the background color and other options which are available in PowerShell UI
remain consistent. I want the same thing.
How do I permanently set these color options for PowerShell Console
.
PowerShell has four profiles, not six. It has a different profile for each console host (whether this be powershell.exe, PowerGUI, ISE, VSCode, etc.) – TheIncorrigible1 – 2018-12-14T17:44:12.107
My color profile is not to be found in any profile.ps1 file on my entire system. I type '$profile' and I'm told my profile file is C:\Users[username]\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1. I go to the directory and the file isn't there. Also not visible when turning on display of hidden files in the folder options.
I've set a color scheme that I want to replicate everywhere. Opening PS from explorer shows me my custom color scheme. Starting PS from the task bar does not. I can't be bothered manually duplicating the color scheme.
What do? – Jay – 2020-02-22T18:56:30.097