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 4b9da4e commit 76dc60bCopy full SHA for 76dc60b
1 file changed
Irregular.psm1
@@ -10,6 +10,10 @@ $CommandsPath = Join-Path $PSScriptRoot Commands
10
. $file.FullName
11
}
12
13
+$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
14
+$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
15
+$MyModule.pstypenames.insert(0, $myModule.Name)
16
+
17
Import-RegEx
18
19
foreach ($k in $script:_RegexLibrary.Keys) {
@@ -36,5 +40,5 @@ Set-Alias ?<> New-RegEx
36
40
Set-Alias Write-RegEx New-RegEx
37
41
Set-Alias ?<.> Use-Regex
38
42
39
-Export-ModuleMember -Function *-* -Alias *
43
+Export-ModuleMember -Function *-* -Alias * -Variable $MyModule.Name
44
0 commit comments