]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Better module loader.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 8b3442fab32afd904615f909d1ca5e3525223af3..8582fbca40d452aefc04d357487163edd0500d68 100644 (file)
@@ -24,15 +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"