New commands + fixes

+ 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
This commit is contained in:
lksz 2021-02-18 10:53:32 -05:00
parent f947b0b3b4
commit f7df96c55d
7 changed files with 127 additions and 78 deletions

View file

@ -23,11 +23,7 @@ if( $editor -match 'code(\.exe)?$' ) {
}
}
$local:arguments = $($Path | ForEach-Object {
if ($Path -match '\*|\?|~') {
Get-ChildItem -Path $_ | Select-Object -ExpandProperty FullName
} else { $_ }
} ) -join "' '"
$local:arguments = $Path | Get-Path | Join-String -Separator "' '"
if( $Path ) { $arguments = "'$arguments'" }
if( $PSCmdlet.ShouldProcess( "Edit ($editor): $arguments" ) ) {