mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-17 16:11:22 +02:00
Renamed to list-profiles.ps1
This commit is contained in:
16
Scripts/list-profiles.ps1
Executable file
16
Scripts/list-profiles.ps1
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/powershell
|
||||
<#
|
||||
.SYNTAX ./list-profiles.ps1
|
||||
.DESCRIPTION lists your PowerShell profiles
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
$PROFILE | select-object *
|
||||
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Reference in New Issue
Block a user