From 5be113cc7c18c4dade97e0eb7246de4bebb78bc2 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Tue, 21 Nov 2023 11:18:13 -0600 Subject: [PATCH] Add AgileGitHub helper modules --- doc/github.md | 18 +++++++++++++++++- files/Microsoft.PowerShell_profile.ps1 | 6 +++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/doc/github.md b/doc/github.md index cae9634..800e302 100644 --- a/doc/github.md +++ b/doc/github.md @@ -28,4 +28,20 @@ ```powershell gh auth login - ``` \ No newline at end of file + ``` + +## Setup PowerShell for GitHub + +1. Install PowerShell for GitHub + + ```powershell + Install-Module -Name PowerShellForGitHub -Scope CurrentUser + ``` + +1. Clone my multi-repo helper scripts + + ```powershell + cd ~/src + git clone git@github.com:uillinois-community/powershell-scripts.git + + ``` diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 7aeb692..ad40198 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -27,12 +27,16 @@ Set-PSReadlineOption -EditMode Vi Write-Host "+ Type 'pg' to enable PoshGit" Write-Host 'See $env:realProfile for version controlled profile file.' -# Load some modules +# Load dotfiles modules $env:psmodules = "$env:dotfiles\psmodules" Import-Module "$env:psmodules\dash.psm1" Import-Module $env:PSModules\file_management.psm1 Import-Module "$env:psmodules\fix_vpn.psm1" Import-Module $env:PSModules\house_shopping.psm1 +# Load local source modules +Import-Module $env:src\powershell-scripts\modules\AgileGitHub.psm1 +Import-Module $env:src\powershell-scripts\modules\MarkdownGitHub.psm1 + # Let's face it, I'm about to cd into my source directory if((Get-Location).Path -eq $HOME){ cd $env:src } -- 2.47.3