Adding common commands + Minor modifications

Reload-MyScripts modified to check for past aliases that might block it
from working.
Aliases dir created with some basic aliases
Invoke-Sudo to make sudo command line calling simpler.
This commit is contained in:
lksz 2020-10-03 16:17:11 -04:00
parent 38aa7720de
commit 968b6c2bbb
11 changed files with 41 additions and 6 deletions

View file

@ -66,7 +66,8 @@ if( -not $ScriptPaths ) {
foreach( $local:p in $ScriptPaths ) {
$local:parentPath = Split-Path -Parent $p;
if( -not (Test-Path $p) -and -not (Test-Path $parentPath) ) {
New-Item -Directory $parentPath
Write-Verbose "Creating missing path $parentPath..."
New-Item -Type Directory $parentPath
}
}