21 lines
463 B
PowerShell
21 lines
463 B
PowerShell
Write-Host "Checking for required PowerShell modules..."
|
|
|
|
$modules = @(
|
|
"posh-git",
|
|
"Profiler",
|
|
"PSFzf",
|
|
"PSProfiler",
|
|
"PSScriptAnalyzer",
|
|
"Terminal-Icons",
|
|
"gsudoModule"
|
|
)
|
|
|
|
foreach ($mod in $modules) {
|
|
if (-not (Get-Module -ListAvailable -Name $mod)) {
|
|
Write-Host "Installing $mod..."
|
|
Install-Module $mod -Scope CurrentUser -Force -AllowClobber
|
|
} else {
|
|
Write-Host "$mod is already installed."
|
|
}
|
|
}
|