]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
There are a few of my favorite PowerShell modules
authorEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 15:44:44 +0000 (09:44 -0600)
committerEdTheDev <edward@delaporte.us>
Fri, 29 Jan 2021 15:44:44 +0000 (09:44 -0600)
bootstrap.ps1
install/admin/favorite-ps-modules.ps1 [new file with mode: 0644]

index b96584f5e10a58f211822ebf91e8fa729352a3cf..623535a94b071af13f0825566480f3926cf7a891 100644 (file)
@@ -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 (file)
index 0000000..214fc33
--- /dev/null
@@ -0,0 +1,6 @@
+\r
+# I trust PSGallery\r
+Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted\r
+\r
+# Install nice Git stuff.\r
+Install-Module -Name posh-git
\ No newline at end of file