]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - files/Microsoft.PowerShell_profile.ps1
Update Journal location
[dotfiles.git] / files / Microsoft.PowerShell_profile.ps1
index 7aeb6925e10fc16d80dd3406741983bea9446e7f..f741f1bb9598172ffed12eab3a129b0e9906c3aa 100644 (file)
@@ -17,7 +17,9 @@ New-Alias dash   Show-MyDashboard # from dash.psm1
 New-Alias today Get-JournalAgenda
 
 # You can pry my unix commands out of my cold dead fingers
 New-Alias today Get-JournalAgenda
 
 # You can pry my unix commands out of my cold dead fingers
-Set-Alias which get-command
+if($iswindows) {
+       Set-Alias which get-command
+}
 # Reject Windows heritage, act like Vi
 # Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
 Set-PSReadlineOption -BellStyle Visual
 # Reject Windows heritage, act like Vi
 # Set-PSReadlineOption -HistorySavePath $env:src\PSHistory.log
 Set-PSReadlineOption -BellStyle Visual
@@ -27,12 +29,29 @@ Set-PSReadlineOption -EditMode Vi
 Write-Host "+ Type 'pg' to enable PoshGit"
 Write-Host 'See $env:realProfile for version controlled profile file.'
 
 Write-Host "+ Type 'pg' to enable PoshGit"
 Write-Host 'See $env:realProfile for version controlled profile file.'
 
-# Load some modules
+# Load dotfiles modules
 $env:psmodules = "$env:dotfiles\psmodules"
 Import-Module "$env:psmodules\dash.psm1"
 $env:psmodules = "$env:dotfiles\psmodules"
 Import-Module "$env:psmodules\dash.psm1"
-Import-Module $env:PSModules\file_management.psm1
+Import-Module $env:psmodules\file_management.psm1
 Import-Module "$env:psmodules\fix_vpn.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: $_"
+       }
+}
+
+
+# Load local source modules
+# Import-Module $env:src\powershell-scripts\modules\MarkdownGitHub.psm1
 
 # Let's face it, I'm about to cd into my source directory
 if((Get-Location).Path -eq $HOME){ cd $env:src }
 
 # Let's face it, I'm about to cd into my source directory
 if((Get-Location).Path -eq $HOME){ cd $env:src }