Browse Source

test-modules startup script draft

master
lksz 1 year ago
parent
commit
0d5522b8c7
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      profile.d/test-modules.ps1
  2. +1
    -0
      src/modules.json

+ 1
- 0
profile.d/test-modules.ps1 View File

@@ -0,0 +1 @@
$(Get-Content $MyPSScriptRoot/src/modules.json | ConvertFrom-Json).Modules | Where-Object { try{-not (Get-Module -ListAvailable $_aaa -ErrorAction stop) }catch{} } | ForEach-Object { Write-Warning "Missing module: $_" }

+ 1
- 0
src/modules.json View File

@@ -1,6 +1,7 @@
{
"Modules": [
"Microsoft.PowerShell.UnixCompleters",
"PowerShellCookbook",
"oh-my-posh",
"posh-git"
]


Loading…
Cancel
Save