From 0f4b589cfb23f913262bd4f52f264cca7e358cfd Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Thu, 9 Nov 2023 14:08:49 -0600 Subject: [PATCH] Add agenda helper --- files/Microsoft.PowerShell_profile.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 854a92d..4b70fe8 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -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 -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 -- 2.47.3