]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Clear error from .md file
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index bc14d5d8c10fd52e0eaa2018386d28f56e34d2c2..7e159fde427caa3a4a6c2dffc63032d5049c9316 100644 (file)
@@ -40,6 +40,9 @@ $env:minion = "$env:src\minion"
 $modPaths = Get-Childitem -Path "$env:src\dotfiles\psmodules"
 $modPaths += Get-Childitem -Path "$env:minion\psmodule"
 
+# https://github.com/uillinois-community/powershell-scripts
+$modPaths += Get-Childitem -Path "$env:src\powershell-scripts\modules"
+
 # Windows Only Modules
 if($IsWindows){
        $modPaths += Get-Childitem -Path "$env:src\dotfiles\win_psmodules"
@@ -49,8 +52,10 @@ if($modPaths.length -eq 0){
 }
 $modPaths | ForEach-Object {
        $fileName = $_.FullName
-       Import-Module $fileName
-       Write-Host ">> Loaded $fileName"
+       if($filename -Like "*.psm1") {
+               Import-Module $fileName
+               Write-Host ">> Loaded $fileName"
+       }
 }
 
 
@@ -103,7 +108,8 @@ function Get-GitStatus() {
 # Tell my scripts which GitHub repositories to look in.
 $env:GITHUB_USERNAME = 'edthedev'
 $env:GITHUB_ORG = 'techservicesillinois'
-$env:GITHUB_REPOS = @('SecOps-Tools', 'secdev-job-aids', 'awscli-login')
+$env:GITHUB_REPOS = @('SecOps-Tools', 'secdev-job-aids', 
+       'awscli-login', 'farmit')
 
 # Nice for git
 New-Alias ol           Get-GitLog