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:
parent
f947b0b3b4
commit
f7df96c55d
7 changed files with 127 additions and 78 deletions
|
@ -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" ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue