If you want that Powershell remember your aliases (and other commands) like “gh for Get-Help”,
you can create a Powershell profile script, which is automaticali executed at Powershell startup
- First test if a profile exist with the folowing command:
test-path $profile
- If the resulte is false, use the folowing command to create a new profile
new-item -path $profile -itemtype file -force
- Type notepad $profile to edit the pprofile
- Now you can write down all yours commands (ex. Set-Alias gh Get-Help)


To view the location of the profile script type $profile