X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/00dc17bd7005aec22fc2514619cf168802e03220..0f4b589cfb23f913262bd4f52f264cca7e358cfd:/files/Microsoft.PowerShell_profile.ps1 diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 7fd5faa..4b70fe8 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -15,7 +15,7 @@ Set-Alias code codium # Prefer Codium # You can pry my unix commands out of my cold dead fingers Set-Alias which get-command # Reject Windows heritage, act like Vi -Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log +# Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log Set-PSReadlineOption -BellStyle Visual Set-PSReadlineOption -ViModeIndicator Prompt Set-PSReadlineOption -EditMode Vi @@ -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