Files
cheatsheet-tldr/tldr/windows/set-alias
2025-12-20 00:20:53 +00:00

19 lines
506 B
Plaintext

---
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/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}}"`