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 clickin

PowerShell / PowerShell

submited by
Style Pass
2021-07-22 22:30:07

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.

Adds FileInfo member to $PSStyle automatic variable to allow customization. Directory, SymbolicLink, and Executable are built-in, but an Extension member which is a dictionary allows modification and addition of new extensions and custom styles. Leverages existing NameString extended member for coloring. Pre-included extensions for archives and PowerShell files. Default color choices are mostly consistent with ls --color.

@SteveL-MSFT I am very concerned that we are colorizing many things by default. This is a very sensitive area for many people. I think we need themes support and the default theme needs to be approved by MSFT accessibility team.

@iSazonov from an accessibility standpoint, the rule that applies here is sufficient contrast between colors (foreground and background) which is covered by the default selections. Can certainly add a [bool] $PSStyle.FileInfo.Color member to make it easy to turn on/off if you feel that is necessary. Themes should really be the domain of the terminal and not the shell.

Leave a Comment
Related Posts