From: EdTheDev Date: Fri, 29 Jan 2021 15:44:44 +0000 (-0600) Subject: There are a few of my favorite PowerShell modules X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/207e37579997cd452dd530a8e41387bc2bcfc8e8?ds=sidebyside There are a few of my favorite PowerShell modules --- 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