Reload PowerShell profile
. $profile

The default location changed in PowerShell Core to
$homeDocumentsPowerShell
Profile locations
# executes automatically
$homeDocumentsWindowsPowerShellprofile.ps1
# executes with console host only
$homeDocumentsWindowsPowerShellMicrosoft.PowerShell_profile.ps1
# executes with ISE only
$homeDocumentsWindowsPowerShellMicrosoft.PowerShellISE_profile.ps1
# Visual Studio Package Manager Console
$homeDocumentsWindowsPowerShellNuGet_profile.ps1
When . $profile doesn’t quite cut it.
function Reload-Profile {
@(
$Profile.AllUsersAllHosts,
$Profile.AllUsersCurrentHost,
$Profile.CurrentUserAllHosts,
$Profile.CurrentUserCurrentHost
) | % {
if (Test-Path $_) {
Write-Verbose "Reloading $_"
. $_
}
}
}