Skip to content

Commit

Permalink
obs-powershell - supporting module profiles (Fixes #155)
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 30, 2023
1 parent ff87606 commit 1a95f1f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion obs-powershell.ps.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ $script:OBS | Import-OBSEffect

$script:OBS.pstypenames.insert(0,'obs.powershell')

Export-ModuleMember -Function * -Variable obs,obs-powershell -Alias *
$ModuleProfilePath = $Profile | Split-Path | Join-Path -ChildPath "$($script:OBS.Name).profile.ps1"
$script:variablesToExport = @('obs','obs-powershell')
if (Test-Path $ModuleProfilePath) {
. $ModuleProfilePath
}

Export-ModuleMember -Function * -Variable $script:variablesToExport -Alias *

0 comments on commit 1a95f1f

Please sign in to comment.