The profile I use for my own powershell sessions. Mostly this is just for my personal use, but feel free to use it and/or derive inspiration from it for your own profile.
MartinsProfile
Pro
for profilewinget install --id JanDeDobbeleer.OhMyPosh
winget install --id voidtools.Everything
Install-PSResource -Name Terminal-Icons -Version 0.10.0
Install-PSResource -Name posh-git -Version 1.1.0
Install-PSResource -Name PSReadline -Version 2.2.0
Install-PSResource MartinsProfile
Import-Module MartinsProfile
If you want the module to load automatically every time, then update your profile with the line above.
You can find your profile path with
$PROFILE.CurrentUserAllHosts
On Windows you can hold the "shift" key while starting the profile to enable debug output.
Alternatively you can set $env:MyProfileDebugMode
before attempting to import
the profile to enable debug output.
Ensure dependencies have been installed.
git clone https://github.com/MartinSGill/Profile.git
cd Profile
Option 1: Open in VsCode and then open in DevContainer
code .
Option 2: Without DevContainer
Install-PSResource InvokeBuild
Import-Module InvokeBuild
Invoke-Build DevInstall