Add PowerShell modules setup and Clink config
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user