mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-17 16:11:22 +02:00
Added list-aliases.ps1
This commit is contained in:
15
Scripts/list-aliases.ps1
Executable file
15
Scripts/list-aliases.ps1
Executable 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
|
||||
}
|
@@ -1,5 +1,11 @@
|
||||
# Personal PowerShell Profile
|
||||
# ---------------------------
|
||||
# comment/uncomment/adapt as you like
|
||||
|
||||
#function prompt {$null} # PS>
|
||||
|
||||
#function prompt { "$ " } # $
|
||||
|
||||
function prompt { "$(Get-Location)\> " } # C:\
|
||||
function prompt { "$(Get-Location)> " } # C:\>
|
||||
|
||||
set-alias -name lsf -value get-childitem # lsf means list formatted
|
||||
|
Reference in New Issue
Block a user