X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/339cc64a5a3b6e8a31ef561815d3cbc4bf7461f6..02605aa59c6c0b6e04df49069d44643bf4643bec:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 6d88b6a..7e159fd 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -52,8 +52,10 @@ if($modPaths.length -eq 0){ } $modPaths | ForEach-Object { $fileName = $_.FullName - Import-Module $fileName - Write-Host ">> Loaded $fileName" + if($filename -Like "*.psm1") { + Import-Module $fileName + Write-Host ">> Loaded $fileName" + } }