Skip to content

digitalguy99/pwsh-man-highlighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pwsh-man-highlighting

Coloring PowerShell manual pages.

Preview

Installation & Usage

PowerShell 7.2 and Up


  1. Run PowerShell as Administrator.

  2. Execute the following command:

    Install-Module man-highlighting

    and if you face any errors running that command, run:

    Install-Module man-highlighting -AllowClobber
  3. Restart PowerShell and run:

    Import-Module man-highlighting

    or simply:

    echo "Import-Module man-highlighting" >> $profile

    so you don't have to import the module every time you open PowerShell.

  4. Execute the program:

    Get-Help <name of cmdlet>

Other PowerShell Versions


  1. Clone the repository to local machine:

    git clone https://github.com/digitalguy99/pwsh-man-highlighting.git
  2. Use cd to navigate to local repository:

    cd <path of directory>
  3. Put man.ps1 in your $env:PATH directory:

    mv man.ps1 <$env:PATH directory>
  4. Execute the program:

    man <name of cmdlet>

Credits


zett42