X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/6229f2f359b7109fa87a8968b3aedc7a2d9f02b7..62068f3e8f4f1c0df89d0230070e3b2e95aca961:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 7f22862..69c720d 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -33,6 +33,9 @@ if($IsWindows){ # $modPaths = Get-Childitem -Path "$src\dotfiles\psmodules" $modPaths += Get-Childitem -Path "$src\minion\psmodule" +if($IsWindows){ + $modPaths += Get-Childitem -Path "$src\dotfiles\win_psmodules" +} if($modPaths.length -eq 0){ Write-Host "No modules found." } @@ -44,11 +47,13 @@ $modPaths | ForEach-Object { # $env:PSModulePath = $env:PSModulePath + ";$src\dotfiles\psmodules" +# Windows Only Modules + # Linux-like up/down in shell Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward -Set-PSReadlineOption -HistorySavePath c:\temp\PSHistory.log +Set-PSReadlineOption -HistorySavePath $src\PSHistory.log # Minion alias commands - 'today' . $src\minion\profiles\alias.ps1