Added list-aliases.ps1

This commit is contained in:
Markus Fleschutz
2021-02-27 11:19:57 +01:00
parent ca5ba276d9
commit f7f206df3b
4 changed files with 24 additions and 1 deletions

15
Scripts/list-aliases.ps1 Executable file
View File

@ -0,0 +1,15 @@
#!/bin/powershell
<#
.SYNTAX ./list-aliases.ps1
.DESCRIPTION lists all PowerShell aliases
.LINK https://github.com/fleschutz/PowerShell
.NOTES Author: Markus Fleschutz / License: CC0
#>
try {
get-alias
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1
}