Files
PowerShellProfiles/README.md
2024-06-09 15:00:16 +02:00

2.0 KiB

PowerShellProfiles

Plugins

Nerd-Fonts

Displays the icons you can see on the right-hand side

Nerd-Fonts - Example

For installation do the following

  • download a font you like from GitHub
  • unzip the files
  • select all ttf-files, right-click and choose 'Install' or 'Install for all users'
  • then you can select the font in Windows Terminal in the appearance-settings

You can also take a look at the official installation guide.

Oh My Posh

Changes the path display to the following

Oh My Posh - Example

There are several themes you can select from GitHub. I use M365Princess.

For installation check the official installation guide.

PSReadLine

Shows you suggestions and/or your history if you wish

PSReadLine - Example

Install-Module PSReadLine

For this representation you need Set-PSReadLineOption -PredictionSource History and Set-PSReadLineOption -PredictionViewStyle ListView.

If you want to use Set-PSReadLineOption -PredictionSource HistoryAndPlugin you need at least PowerShell version 7.1.999.

You can also take a look at the official installation guide.

Terminal Profile

To open the profile configuration

  • open Windows Terminal
  • select your profile in the dropdown
  • type code $profile and press Enter

My personal profile.

A comprehensive sample for PSReadLine you can find on GitHub.