This repository stores the startup scripts for my Windows PowerShell.
The main Microsoft_PowerShell_profile.ps1 calls to the user_profile.ps1 file to take all the commands from there and use them. I made this work with the latest version of PowerShell on Windows 10 or 11. You can add any aliases you need to it the profiles as well to make them as useful to you as possible. Hopefully you enjoy the themes that I have listed.
- Set your ExscutionPolicy to
RemoteSignedso you can automatically run the startup script upon starting PowerShell. - Install oh-my-posh
- Install a Nerd Font of your choice
- open the user profile that you have stored in
C:\Users\[Your_User_name]\Documents\PowerShell\Microsoft.PowerShell_profile.ps1and replace it with the contents ofprofile.ps1. If it doesn't exist, create one. - Create a folder at
C:\Users\[Your_User_Name]called.configand nest a folder inside it calledpowershelland drop theuser_profile.ps1file in there. - Use the
--configflag and follow that with the path to the theme of your choice. You will have to clone the repo I linked to use any theme you want.
[03 July 2022] I liked the color scheme of the festivetech theme so I added code to make the theme function correctly and display the correct number of days until Christmas.