]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Just handle charts here.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 6be7ab95e781d19a0506680645021ced7c8a1b86..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"
 
 $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"
 # 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
 }
 $modPaths | ForEach-Object {
        $fileName = $_.FullName
-       Import-Module $fileName
-       Write-Host ">> Loaded $fileName"
+       if($filename -Like "*.psm1") {
+               Import-Module $fileName
+               Write-Host ">> Loaded $fileName"
+       }
 }
 
 
 }
 
 
@@ -100,5 +105,16 @@ function Get-GitStatus() {
        git status -b --short
 }
 
        git status -b --short
 }
 
+# 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', 'farmit')
+
+# Nice for git
 New-Alias ol           Get-GitLog
 New-Alias st           Get-GitStatus
 New-Alias ol           Get-GitLog
 New-Alias st           Get-GitStatus
+
+# Dashboard
+New-Alias dash   Get-MyDashboard # from dash.psm1
+New-Alias agenda Get-JournalAgenda # from minion_go.psm1