Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the color of power shell editor, for typed commands?

Tags:

powershell

Inside powershell when I am type some command it turns to yellow color which is not very visible to me, how can I change that color? enter image description here

like image 218
FarazShuja Avatar asked Dec 03 '25 10:12

FarazShuja


1 Answers

Or even better, use [console]::ForegroundColor = "Black". Also, there are other options, like:

C:\WINDOWS\system32> $host.privatedata

ErrorForegroundColor    : Red
ErrorBackgroundColor    : Black
WarningForegroundColor  : Yellow
WarningBackgroundColor  : Black
DebugForegroundColor    : Yellow
DebugBackgroundColor    : Black
VerboseForegroundColor  : Yellow
VerboseBackgroundColor  : Black
ProgressForegroundColor : Yellow
ProgressBackgroundColor : DarkCyan

C:\WINDOWS\system32> $host.ui.RawUI

ForegroundColor       : Green
BackgroundColor       : Black
CursorPosition        : 0,64
WindowPosition        : 0,18
CursorSize            : 25
BufferSize            : 120,3000
WindowSize            : 120,50
MaxWindowSize         : 120,88
MaxPhysicalWindowSize : 265,88
KeyAvailable          : False
WindowTitle           : Administrator: Windows PowerShell

Using these settings you can alter your profile so that everytime you launch Powershell they are applied. More on this.

like image 105
4c74356b41 Avatar answered Dec 06 '25 23:12

4c74356b41



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!