PowerShell Module for colloring Prompt and Files outputs
PowerShell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE.txt
PSColors.format.ps1xml
PSColors.psd1
PSColors.psm1
README.md

README.md

PSColors

This PowerShell provides no functions to be used. Instead it will provide some coloring for PowerShell:

  • Forces background color to black
  • Green prompt, without changing the actual foreground color
  • If used in a ANSI console (like ConEmu), it will also provide coloring for files output

Extra features

Hiding dot files

By setting environment variable PSCOLORS_HIDE_DOTFILE to true, PSColors will prevent Get-ChildItem Cmdlet from outputting files whose names start with a dot, unless -Force is used.

This will make PowerShell behave similar to Unix's ls command.

Installing

Windows 10 users:

Install-Module PSColors -Scope CurrentUser -AllowClobber

NOTE: AllowClobber is only required after Aniversary Update

Otherwise, if you have PsGet installed:

Install-Module PSColors

Or you can install it manually copying PSColors.psm1 to your modules folder (e.g. $Env:USERPROFILE\Documents\WindowsPowerShell\Modules\PSColors\)

After installed, you will also need to explicitly load this module:

Import-Module PSColors

It's recommended that you this command to your profile file ($PROFILE) in order for the prompt function to take effect.