]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/Microsoft.PowerShell_profile.ps1
Add agenda helper
[dotfiles.git] / files / Microsoft.PowerShell_profile.ps1
index fc17319d137302cbd7dd03632f6e9d40763cf465..4b70fe83950fa9bc26ddeefe9567e16109b45e0d 100644 (file)
@@ -10,10 +10,12 @@ function Enable-PoshGit {
 }
 New-Alias pg    Enable-PoshGit
 
+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
@@ -21,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