]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Shorter dash
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 6be7ab95e781d19a0506680645021ced7c8a1b86..00ba3b96105d20bcb2c38c31f5284ea07caf3395 100644 (file)
@@ -100,5 +100,23 @@ 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))
+}
+
+
 New-Alias ol           Get-GitLog
 New-Alias st           Get-GitStatus
+New-Alias dash  Get-Dashboard
+New-Alias agenda Get-JournalAgenda