X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/a915de89d5fab58b7913c6e07a4713dd7cf58b15..e9296d27e256eb009f7963438b238666a3a78e0d:/files/Microsoft.PowerShell_profile.ps1 diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 2bbdf46..e39aab2 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -15,6 +15,27 @@ Set-Alias code codium # Prefer Codium # 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 +New-Alias vim nvim # You can pry my unix commands out of my cold dead fingers if($iswindows) { @@ -34,10 +55,22 @@ $env:psmodules = "$env:dotfiles\psmodules" Import-Module "$env:psmodules\dash.psm1" Import-Module $env:psmodules\file_management.psm1 Import-Module "$env:psmodules\fix_vpn.psm1" -Import-Module $env:psmodules\house_shopping.psm1 + +$maybe_mods = @( + "$env:src\travel-times\travel-times.psm1", + "$env:src\powershell-scripts\modules\AgileGitHubCLI.psm1" + ) +$maybe_mods | ForEach-Object { + if(Test-Path $_) { + Import-Module $_ + } else { + Write-Host "Not found: $_" + } +} + +$env:nvim_config = "$HOME\AppData\Local\nvim" # Load local source modules -Import-Module $env:src\powershell-scripts\modules\AgileGitHubCLI.psm1 # Import-Module $env:src\powershell-scripts\modules\MarkdownGitHub.psm1 # Let's face it, I'm about to cd into my source directory