We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76dc60b commit 3e8a3bdCopy full SHA for 3e8a3bd
1 file changed
Irregular.ps.psm1
@@ -5,6 +5,15 @@ $MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
5
$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
6
$MyModule.pstypenames.insert(0, $myModule.Name)
7
8
+$newDriveCommonParameters =
9
+ @{PSProvider='FileSystem';Scope='Global';ErrorAction='Ignore'}
10
+New-PSDrive -Name $myModule.name @newDriveCommonParameters -Root ($myModule | Split-Path)
11
+
12
+if ($home) {
13
+ $MyMyModule= "My$($myModule.name)"
14
+ New-PSDrive -Name $MyMyModule @newDriveCommonParameters -Root (Join-Path $home $MyMyModule)
15
+}
16
17
Import-RegEx
18
19
foreach ($k in $script:_RegexLibrary.Keys) {
0 commit comments