mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 20:58:50 +00:00
Update cheatsheets
This commit is contained in:
18
tldr/windows/set-alias
Normal file
18
tldr/windows/set-alias
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Set-Alias
|
||||
|
||||
> A powershell command to set or modify alias.
|
||||
> Note: `sal` can be used as an alias for `Set-Alias`.
|
||||
> More information: <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias>.
|
||||
|
||||
- Create or reassign new alias:
|
||||
|
||||
`Set-Alias -Name {{text}} -Value {{command}}`
|
||||
|
||||
- Add a description to alias:
|
||||
|
||||
`Set-Alias -Name {{text}} -Value {{command}} -Description "{{description}}"`
|
||||
Reference in New Issue
Block a user