Customise PowerShell: profile, prompt and modules
10 steps · about 3 h · Beginner
- Customizing your shell environment (doc, Microsoft Learn, 15 min)
It shows what a profile can hold (aliases, functions, modules, drives, preferences), so you know what you're building.
- about_Profiles (doc, Microsoft Learn, 20 min)
Next comes the exact reference for the four profile files, their paths, and which one to edit.
- PowerShell Profiles: Customize Every Session (guide, PowerShell Genie, 10 min)
A short walkthrough of creating the file with New-Item and keeping the profile light so sessions start fast.
- about_Prompts (doc, Microsoft Learn, 20 min)
This teaches the prompt function, which every fancier prompt tool builds on, so you can write and save your own.
- Using predictors in PSReadLine (doc, Microsoft Learn, 15 min)
It shows how to turn on history-based suggestions and choose the inline or list view, which makes daily typing faster.
- Set-PSReadLineOption (PSReadLine) (reference, Microsoft Learn, 25 min)
This is the full list of editing, history, and colour options to put in your profile.
- Install-PSResource (Microsoft.PowerShell.PSResourceGet) (doc, Microsoft Learn, 20 min)
This covers installing the modules your profile will import, including version ranges and scope.
- PSResourceGet is generally available (blog, PowerShell Team Blog, 10 min)
It explains why Install-PSResource replaces Install-Module and how the two relate, so module tutorials make sense.
- PowerShell Terminal Customization: oh-my-posh, Terminal-Icons & more (tutorial, Ashish Jha, 25 min)
A hands-on build that combines oh-my-posh, Terminal-Icons, and PSReadLine in one profile.
- pwsh-config: Configure powershell with custom prompt and oh-my-posh (repo, GitHub (tahmidul612), 20 min)
A finished profile to read and adapt. It includes a note on profile load times, to help with the speed trade-off.