User Tools

Site Tools


powershell_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
powershell_setup [2022/12/20 02:27] stephenpowershell_setup [2023/01/28 00:04] (current) – external edit 127.0.0.1
Line 1: Line 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 =====
powershell_setup.1671503223.txt.gz · Last modified: 2022/12/21 03:27 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki