]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Clear error from .md file
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 00ba3b96105d20bcb2c38c31f5284ea07caf3395..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"
+       }
 }
 
 
@@ -100,23 +105,16 @@ function Get-GitStatus() {
        git status -b --short
 }
 
-function Get-DashBoard() {
-       Measure-JournalTodos
-       chart
-       # todo
-       # Get-JournalAgenda
-       Write-Host "Todo items for today:"
-       Get-JournalTodayTodos
-       Write-Host "Use command 'todo' to list more tasks."
-       Write-Host "Use command 'agenda' to list the plan for today."
-}
-
-function Get-JournalAgenda() {
-       Get-Content $(Get-JournalFile -date $(Get-Date))
-}
-
+# 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 dash  Get-Dashboard
-New-Alias agenda Get-JournalAgenda
+
+# Dashboard
+New-Alias dash   Get-MyDashboard # from dash.psm1
+New-Alias agenda Get-JournalAgenda # from minion_go.psm1