Giter Club home page Giter Club logo

poshcolor's Introduction

PoshColor

PoshColor is a blatant ripoff of PSColor ☺️, allowing you to customise items in powershell based on your own color preferences. PoshColor works in Powershell Core and works across both Windows and Linux.

PSColozier can use either standard console colors or 8 bit RGB allowing 16 million colour goodness.

Features

  • Colors can be set to RGB or Named colors from .Net (System.Drawing.Color)
  • Tested under Windows (powershell and powershell core) and Linux (Ubuntu/bash Ubuntu/powershell core)
  • Support for Background colors
  • Coloring of:
    • EventLogRecord (get-winevent)
    • Files, Directories (ls / get-childitem)
    • MatchInfo (select-string)
    • MemberInfo (get-member)
    • PSModuleInfo (get-module)
    • PSDriveInfo (get-psdrive)
    • Services (get-service)
  • Files & Directories can have rules for coloring including based the following:
    • File Names using regular expressions
    • File Attributes such as directory, hidden, system, encypted or compressed
  • Theme support
  • Can be unloaded/reloaded without causing issues in your current session

Screenshot of Get-Childitem

Screenshot of get-childitem

Screenshot of Select String with -Context 1

Screenshot of select-string with context

Screenshot of Get-Service

Screenshot of Get-Service

Get-Command

Screenshot of Get-Command

Themes

There are currently 3 themes that come with PoshColor. Feel free to contribute more themes to make PoshColor the best it can be.

Included themes

Theme Name Description
Default The default theme using standard terminal colors
DefaultHighColor Similar styling to Default, but uses 8 bit RGB colors
Cool Uses RGB colors to provide a theme based on whites, blues and greens

Comands

Command Description
Get-PoshColorTheme Gets the current theme being used by PoshColor
Set-PoshColorTheme Sets the current theme for PoshColor to use
Get-PoshColorThemes Gets a list of all installed PoshColor themes

Installation

PowershellGallery

Install-Module PoshColor

Import-Module PoshColor

Install from source

git clone https://github.com/JustABearOz/PoshColor.git

sl .\PoshColor

.\Install.ps1

Install from Zip

Download the latest release and extract it into your powershell modules directory.

Add to Profile

The above installation methods will load the PoshColor module for your current session. If you want the PoshColor module loaded for all sessions, add the following line to your profile

Import-Module PoshColor

Updating PoshColor

To update PoshColor to the newest version, run the following command in powershell

Update-Module PoshColor

Unload PoshColor

To unload PoshColor from your session, run the following command in powershell

Remove-Module PoshColor

Themes

To view a list of installed themes

Get-PoshColorThemes

To set the current theme (Setting theme too Cool)

Set-PoshColorTheme Cool

To view the current theme

Get-PoshColorTheme

Questions

Why not contribute to PSColor?

PS Color seems to be a dead repository. There have not been any updates to the repo in a few years, and there are a few outstanding issues that have not been resolved. Yes, I could fix these issues, however there are PRs others have raised to fix some of the issues which have not been accepted in years. ALSO, I thought it would be fun to do :)

poshcolor's People

Contributors

justabearoz avatar armaldio avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.