From 207e37579997cd452dd530a8e41387bc2bcfc8e8 Mon Sep 17 00:00:00 2001 From: EdTheDev Date: Fri, 29 Jan 2021 09:44:44 -0600 Subject: [PATCH 1/1] There are a few of my favorite PowerShell modules --- bootstrap.ps1 | 10 ++++++++-- install/admin/favorite-ps-modules.ps1 | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 install/admin/favorite-ps-modules.ps1 diff --git a/bootstrap.ps1 b/bootstrap.ps1 index b96584f..623535a 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -19,7 +19,8 @@ param( # [Parameter(Mandatory=$true, HelpMessage="Install Vim")] [switch]$vim, # [Parameter(Mandatory=$true, HelpMessage="Setup PowerShell Profile")] - [switch]$profile + [switch]$profile, + [switch]$fav_ps_modules ) ## Always Install Chocolatey if missing @@ -57,4 +58,9 @@ if($vim){ if($profile){ ./install/profile.ps1 -} \ No newline at end of file +} + +if($fav_ps_modules) { + Write-Host "Reminder: Need to install these modules with admin escalation." + ./install/admin/favorite-ps-modules.ps1 +} diff --git a/install/admin/favorite-ps-modules.ps1 b/install/admin/favorite-ps-modules.ps1 new file mode 100644 index 0000000..214fc33 --- /dev/null +++ b/install/admin/favorite-ps-modules.ps1 @@ -0,0 +1,6 @@ + +# I trust PSGallery +Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted + +# Install nice Git stuff. +Install-Module -Name posh-git \ No newline at end of file -- 2.47.3