From 0d5522b8c707d73e04c30fc559f75e4fe28abbd3 Mon Sep 17 00:00:00 2001 From: lksz Date: Thu, 5 Nov 2020 00:08:59 -0500 Subject: [PATCH] test-modules startup script draft --- profile.d/test-modules.ps1 | 1 + src/modules.json | 1 + 2 files changed, 2 insertions(+) create mode 100644 profile.d/test-modules.ps1 diff --git a/profile.d/test-modules.ps1 b/profile.d/test-modules.ps1 new file mode 100644 index 0000000..d3adfc5 --- /dev/null +++ b/profile.d/test-modules.ps1 @@ -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: $_" } diff --git a/src/modules.json b/src/modules.json index 2bd93a2..d375d21 100644 --- a/src/modules.json +++ b/src/modules.json @@ -1,6 +1,7 @@ { "Modules": [ "Microsoft.PowerShell.UnixCompleters", + "PowerShellCookbook", "oh-my-posh", "posh-git" ]