I have a commandlet in my profile that reloads my user profile. Whenever I edit my profile VSCode warns me that the name I use—Reload-Profile
—uses an unapproved verb.
While Reload
seems like a sane, obvious and easily searchable verb to describe reloading a resource, I'd like to know what I should be using to keep PS happy. None of the candidates on the list of approved verbs seem to describe anything like reloading.
Here's the code BTW (I got it from this answer)
function Reload-Profile {
@($Profile.AllUsersAllHosts,
$Profile.AllUsersCurrentHost,
$Profile.CurrentUserAllHosts,
$Profile.CurrentUserCurrentHost
) | ForEach-Object {
if(Test-Path $_){
Write-Host "Running $_" -foregroundcolor Magenta
. $_
}
}
}