James Brown
James Brown

Reputation: 347

PowerShell Module won't import from $profile

In the very last line of my profile, I have Import-Module PSReadline.

And yet the module doesn't load when I launch PowerShell. I have to import it manually. I have another module (pscx) set to import in my profile, and it loads perfectly. Why not PSReadline?

Upvotes: 1

Views: 688

Answers (1)

Keith Hill
Keith Hill

Reputation: 202032

Is there anything before that in your profile script that may be failing? Try moving the Import-Module PSReadline to the very top of the profile script.

Upvotes: 1

Related Questions