Profiles can be per-machine, per-user, or per-shell. See this website for the full details.
To set up your personalized profile for your user account, create the following file:
$env:userprofile\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Here's the profile I set up for myself:
# PROFILE START ###########################
# ALIASES
set-alias subst 'subst-output.ps1'
set-alias match 'get-match.ps1'
set-alias ex 'explorer.exe'
# ENVIRONMENT
$env:pathext = (".PS1;" + $env:pathext)
# PATH
cd "$env:userprofile\Documents"
# PROFILE END #############################
1 comment:
Very creative post.
Post a Comment