
+ Get-Mount (mounts retuned as objects for easy filtering) + Get-RandomMacAddress (for easy MAC Address generation) * Get-Path modified to resolve ~, also made it work with pipeline input * Edit-TextFile streamlined by using modified Get-Path * Added emacs and spacemacs to MyConfig * dcup - attempt at cleaner output + added docker/profile.d/env.ps1 for default docker vars
14 lines
369 B
PowerShell
14 lines
369 B
PowerShell
[CmdletBinding()]param()
|
|
|
|
& mount |
|
|
ForEach-Object {
|
|
$null = $_ -match "^(.*) on (/.*) type ([^ ]*)( (.*))?$";
|
|
[PSCustomObject]([ordered]@{
|
|
Path = $matches[2]
|
|
Type = $matches[3]
|
|
Name = $matches[1]
|
|
Options = $matches[5]
|
|
# Matches = $Matches
|
|
# Raw = $_
|
|
})
|
|
}
|