Skip to content

Commit

Permalink
feat: Mounting Irregular ( Fixes #213 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Apr 16, 2024
1 parent 76dc60b commit 3e8a3bd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Irregular.ps.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ $MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
$MyModule.pstypenames.insert(0, $myModule.Name)

$newDriveCommonParameters =
@{PSProvider='FileSystem';Scope='Global';ErrorAction='Ignore'}
New-PSDrive -Name $myModule.name @newDriveCommonParameters -Root ($myModule | Split-Path)

if ($home) {
$MyMyModule= "My$($myModule.name)"
New-PSDrive -Name $MyMyModule @newDriveCommonParameters -Root (Join-Path $home $MyMyModule)
}

Import-RegEx

foreach ($k in $script:_RegexLibrary.Keys) {
Expand Down

0 comments on commit 3e8a3bd

Please sign in to comment.