< Back

Set-PromptColor

Sun Jan 19, 2020 5:36 pm

NAME Set-PromptColor



SYNOPSIS

Sets a color for use in prompts.





SYNTAX

Set-PromptColor [-Name] <String> [-Color] {Black | DarkBlue | DarkGreen | DarkCyan | DarkRed | DarkMagenta |

DarkYellow | Gray | DarkGray | Blue | Green | Cyan | Red | Magenta | Yellow | White} [<CommonParameters>]





DESCRIPTION

Sets a color, associated with a specific name, which is used in available prompts.

If a color associated with the provided name does not exist, a new one is created.





PARAMETERS

-Name <String>

The name associated with the color being set.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Color



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>(Imagine "C:\\" is displayed in white.)



[jimmeh@jimmehsbox] C:\\$ Set-PromptColor "Path" Red

(Now imagine "C:\\" is displayed in red.)

[jimmeh@jimmehsbox] C:\\$











RELATED LINKS

https://github.com/jimmehc/PromptEd