Created
June 25, 2024 15:02
-
-
Save nilsandrey/cc06b9942ff8485016d12846690e052e to your computer and use it in GitHub Desktop.
Reload your Powershell profile, credits to <https://stackoverflow.com/a/5501909/2100126>.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Reload-Profile { | |
@( | |
$Profile.AllUsersAllHosts, | |
$Profile.AllUsersCurrentHost, | |
$Profile.CurrentUserAllHosts, | |
$Profile.CurrentUserCurrentHost | |
) | % { | |
if(Test-Path $_){ | |
Write-Verbose "Running $_" | |
. $_ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this function to your Powershell profile.