/pwsh-profile

My pwsh profile

Primary LanguagePowerShellMIT LicenseMIT

pwsh-profile

My pwsh profile

Usage

First, you should install PowerShell and Oh-My-Posh through MS Store or Winget. Besides that, I am also using GitHub CLI.

winget install JanDeDobbeleer.OhMyPosh -s winget
winget install Microsoft.Powershell -s winget
winget install --id GitHub.cli

This profile requires the installation of the following three modules.

Install-Module -Name z -Force
Install-Module -Name Terminal-Icons -Repository PSGallery -Force
PowerShellGet\Install-Module posh-git -Scope CurrentUser -Force

PSReadLine is built-in

Edit Profile

nvim $PROFILE.CurrentUserCurrentHost

and enter the init line

. $env:USERPROFILE\.config\pwsh-profile\user_profile.ps1

Preview

image1 image2