Set-Alias code codium # Prefer Codium
+# Dashboard
+New-Alias dash Show-MyDashboard # from dash.psm1
+New-Alias today Get-JournalAgenda
+
# You can pry my unix commands out of my cold dead fingers
Set-Alias which get-command
# Reject Windows heritage, act like Vi
+++ /dev/null
-# Dashboard
-New-Alias dash Show-MyDashboard # from dash.psm1
-
-function Get-JournalAgenda() {
- agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md"
-}
-New-Alias today Get-JournalAgenda
\ No newline at end of file
}
function Show-MyDashBoard() {
+ param(
+ [bool]$gitHub=$false
+ )
Write-Host ""
Write-Host "## Todo items for today:"
# Measure-JournalTodos
Write-Host "## Agenda for today:"
Get-JournalAgenda
Write-Host ""
- Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
- # Show-AgileMine
- # Show-AgileMine -DaysAgo 6
- Write-Host ""
- Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)"
- Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)"
- $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' }
- # $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
- # Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
+ if($github) {
+ Write-Host "## GitHub Issues Assigned (Show-AgileMine)"
+ Show-AgileMine
+ Show-AgileMine -DaysAgo 6
+ Write-Host ""
+ Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)"
+ Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)"
+ $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' }
+ $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos
+ Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub
+ }
Write-Host ""
Write-Host "Use command 'todo' to list more tasks."
Write-Host "Use command 'chart' to show todo item progress."