Created
August 16, 2017 02:31
-
-
Save patricksuo/dfd2ef0565f3e8f3f04095eaee50a29a to your computer and use it in GitHub Desktop.
powershell dot file
This file contains 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
# https://blogs.technet.microsoft.com/heyscriptingguy/2012/05/21/understanding-the-six-powershell-profiles/ | |
#Description | |
#Path | |
#Current User, Current Host - console | |
#$Home\[My ]Documents\WindowsPowerShell\Profile.ps1 | |
#Current User, All Hosts | |
#$Home\[My ]Documents\Profile.ps1 | |
#All Users, Current Host - console | |
#$PsHome\Microsoft.PowerShell_profile.ps1 | |
#All Users, All Hosts | |
#$PsHome\Profile.ps1 | |
#Current user, Current Host - ISE | |
#$Home\[My ]Documents\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1 | |
# All users, Current Host - ISE | |
#$PsHome\Microsoft.PowerShellISE_profile.ps1 | |
# https://docs.microsoft.com/zh-cn/powershell/module/Microsoft.PowerShell.Utility/Set-Alias?view=powershell-5.1 | |
Set-Alias open ii # `open .` like macOS | |
Set-Alias which Get-Command # `which vim` like *nix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment