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 1ceedb0 commit 4b9da4eCopy full SHA for 4b9da4e
1 file changed
Irregular.ps.psm1
@@ -1,6 +1,10 @@
1
$CommandsPath = Join-Path $PSScriptRoot Commands
2
[include('*-*.ps1')]$CommandsPath
3
4
+$MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
5
+$ExecutionContext.SessionState.PSVariable.Set($myModule.Name, $MyModule)
6
+$MyModule.pstypenames.insert(0, $myModule.Name)
7
+
8
Import-RegEx
9
10
foreach ($k in $script:_RegexLibrary.Keys) {
@@ -27,4 +31,4 @@ Set-Alias ?<> New-RegEx
27
31
Set-Alias Write-RegEx New-RegEx
28
32
Set-Alias ?<.> Use-Regex
29
33
30
-Export-ModuleMember -Function *-* -Alias *
34
+Export-ModuleMember -Function *-* -Alias * -Variable $MyModule.Name
0 commit comments