]> apps.delaporte.us Git - dotfiles.git/commitdiff
Add agenda helper
authorEdward Delaporte <delaport@illinois.edu>
Thu, 9 Nov 2023 20:08:49 +0000 (14:08 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Thu, 9 Nov 2023 20:08:49 +0000 (14:08 -0600)
files/Microsoft.PowerShell_profile.ps1

index 854a92d27e20d2e8de6b3bdaba01eb06727ed299..4b70fe83950fa9bc26ddeefe9567e16109b45e0d 100644 (file)
@@ -23,4 +23,10 @@ Set-PSReadlineOption -EditMode Vi
 Write-Host "+ Type 'pg' to enable PoshGit"
 Write-Host 'See $env:realProfile for version controlled profile file.'
 # Let's face it, I'm about to cd into my source directory
 Write-Host "+ Type 'pg' to enable PoshGit"
 Write-Host 'See $env:realProfile for version controlled profile file.'
 # Let's face it, I'm about to cd into my source directory
-if((Get-Location).Path -eq $HOME){ cd $env:src }
\ No newline at end of file
+if((Get-Location).Path -eq $HOME){ cd $env:src }
+
+function Get-JournalAgenda() {
+    # Write-Host "Reading from $HOME\Journal\{YYYY}\{MM}-{DD}.md"
+    agenda.exe -path "$HOME\Journal\{YYYY}\{MM}-{DD}.md"
+}
+New-Alias today Get-JournalAgenda
\ No newline at end of file