]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/Microsoft.PowerShell_profile.ps1
Removed unused ashboard bits
[dotfiles.git] / files / Microsoft.PowerShell_profile.ps1
index 3107b6a191442c57baef20c8029e0fbb2fec9db5..04d9c45c1fc10a753e81db3f29a8b25c1d8916a1 100644 (file)
@@ -3,7 +3,6 @@ $env:dotfiles = "$HOME\dotfiles"
 Import-Module $env:dotfiles\psmodules\add_to_profile.psm1
 Add-ToProfile $env:dotfiles\files\paths.ps1
 Add-ToProfile $env:dotfiles\files\env.ps1
-Add-ToProfile $env:dotfiles\files\load_modules.ps1
 
 # Delay loading PoshGit for speed. 
 function Enable-PoshGit {
@@ -23,5 +22,18 @@ Set-PSReadlineOption -EditMode Vi
 
 Write-Host "+ Type 'pg' to enable PoshGit"
 Write-Host 'See $env:realProfile for version controlled profile file.'
+
+# Load some modules
+$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"
+
 # 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