Both sides previous revisionPrevious revisionNext revision | Previous revision |
powershell_setup [2022/12/20 02:27] – stephen | powershell_setup [2023/01/28 00:04] (current) – external edit 127.0.0.1 |
---|
====== PowerShell Setup ====== | ====== PowerShell Setup ====== |
| |
===== Install Stuff ===== | ===== Setup PowerShell Gallery ===== |
| |
- Run ''Get-PSRepository'' to verify if PowerShell Gallery is set up properly. If it isn't, you probably need to [[powershell_cheat_sheet#get_install-module_working_behind_a_webproxy|set up the web proxy settings]]. | - Run ''Get-PSRepository'' to verify if PowerShell Gallery is set up properly. If it isn't, you probably need to [[powershell_cheat_sheet#get_install-module_working_behind_a_webproxy|set up the web proxy settings]]. |
- Run ''Find-Module posh-git'' to verify that modules can be installed. If you get 'Unable to resolve package source...' you will need to [[powershell_manual_module_installation|install it manually]] (don't bother trying to fix it). | - If ''https://www.powershellgallery.com/api/v2'' is untrusted, run this ''Set-PSRepository -Name PSGallery -InstallationPolicy Trusted''. |
| - Run ''Find-Module BurntToast'' to verify that modules can be installed. If you get 'Unable to resolve package source...' you will need to [[powershell_manual_module_installation|install it manually]] (don't bother trying to fix it). |
| |
| ===== Install Stuff ===== |
| |
| - Run ''Install-Module -Name BurntToast -Repository PSGallery''. |
| - Run ''Install-Module -Name Terminal-Icons -Repository PSGallery''. |
- Run ''Install-Module posh-git -Scope CurrentUser''. | - Run ''Install-Module posh-git -Scope CurrentUser''. |
| |
| Older stuff that probably doesn't need to be installed anymore. |
| |
- Run ''winget install JanDeDobbeleer.OhMyPosh -s winget''. | - Run ''winget install JanDeDobbeleer.OhMyPosh -s winget''. |
- Run ''Install-Module -Name Terminal-Icons -Repository PSGallery''. | |
| |
===== Setup Profile ===== | ===== Setup Profile ===== |