]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Add functions for quick journal access
authorEdward Delaporte <delaport@illinois.edu>
Wed, 19 Feb 2025 16:33:27 +0000 (10:33 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Wed, 19 Feb 2025 16:33:27 +0000 (10:33 -0600)
files/Microsoft.PowerShell_profile.ps1

index ae447feeef08bbd7ff9c55090baeaa35160d0d97..e39aab217935d2e506ef3e76477912f0be750fd0 100644 (file)
@@ -15,6 +15,23 @@ Set-Alias code codium  # Prefer Codium
 # Dashboard
 New-Alias dash   Show-MyDashboard # from dash.psm1
 New-Alias today Get-JournalAgenda
 # Dashboard
 New-Alias dash   Show-MyDashboard # from dash.psm1
 New-Alias today Get-JournalAgenda
+function journal {
+    param(
+        [switch]$limited = $false,
+        [switch]$shared = $false
+    )
+    $path = "$HOME\Box\Journal"
+    if($limited) {
+        $path = "$HOME\Box\SecDevLimited"
+    }
+    if($shared) {
+        $path = "$HOME\Box\Privacy & Cybersecurity\Cybersecurity Development"
+    }
+    nvim $path
+}
+function dotfiles {
+    nvim "$HOME\dotfiles"
+}
 
 # Vi
 New-Alias vi nvim
 
 # Vi
 New-Alias vi nvim