Run $PROFILE
to see which directory the profile is placed in, add that dir in environment variable with name PWSH_DIR
, you need to place this repository on that same directory as well.
[!Note]- Optionally, to use it in older Microsoft PowerShell, run
notepad $PROFILE.AllUsersAllHosts
and add
. "$env:PWSH_DIR\profile.ps1"