Powershell - auto load changes to cmdlets/modules in terminal

30 views Asked by At

Tried Import-Module <my module name>, but the terminal session already in use doesn't reflect new changes in my cmdlet.

Closing and re-opening the terminal seems to be loading the latest changes, but it's not optimal during active development.

Any ideas how to automatically read/load the latest changes? TIA


Edit: ended up making an alias called reload

function Import-All-Modules { Import-Module * -Force }
Set-Alias -Name "reload" "Import-All-Modules"
0

There are 0 answers