X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/7f8534a0ad54e854ab4d70b0bd45e2c05369aece..55dd527419bb2887a69b707b6f1b8d29956f2692:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 7a83696..8582fbc 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -24,12 +24,14 @@ if($IsWindows -eq "") { # Import some home grown PowerShell modules, if they are installed. $modPaths = Get-Childitem -Path "c:\src\dotfiles\psmodules" +$modPaths += Get-Childitem -Path "c:\src\minion\psmodule" +if($modPaths.length -eq 0){ + Write-Host "No modules found." +} $modPaths | ForEach-Object { -# $_ | Format-Table - if(Test-Path -Path $_) { - Import-Module $_ - Write-Host ">> Loaded $_" - } + $fileName = $_.FullName + Import-Module $fileName + Write-Host ">> Loaded $fileName" } #} # $env:PSModulePath = $env:PSModulePath + ";c:\src\dotfiles\psmodules"