-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04db792
commit d25049f
Showing
4 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
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
6 changes: 6 additions & 0 deletions
6
src/How-to/Creating a permanent PowerShell Alias using Set-Alias.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
To create a permanent PowerShell Alias using the Set-Alias cmdlet, you should add it to your PowerShell profile, which ensures that the alias is available every time you launch PowerShell. | ||
|
||
1. Open the PowerShell profile file in Notepad: `notepad $profile` | ||
2. Add the following line to create a permanent alias: `Set-Alias -Name aliasname -Value command` | ||
3. Save your changes and close Notepad. | ||
4. To ensure that your profile is loaded, run the command: `. $profile` |
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
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