-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPsBundle.psm1
40 lines (34 loc) · 913 Bytes
/
PsBundle.psm1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
##
## Powershell interactive session module management
## URL: https://github.com/Nemo157/psbundle
## Based on Vundle (https://github.com/gmarik/vundle)
##
$global:PsBundle = @{
Providers = @{}
Modules = @{
Requested = @()
Installed = @()
}
}
$BasePath = Split-Path $MyInvocation.MyCommand.Definition
@(
'lib\Find-ProviderType.ps1'
'lib\Install-Bundle.ps1'
'lib\Install-PsBundleModule.ps1'
'lib\Register-Module.ps1'
'lib\Register-PsBundleProvider.ps1'
'lib\Update-Bundle.ps1'
'lib\Update-PsBundleModule.ps1'
) | % { . (Join-Path $BasePath $_) }
@(
'lib\Providers\git.ps1'
'lib\Providers\hg.ps1'
'lib\Providers\github.ps1'
) | % { & (Join-Path $BasePath $_) }
$PsBundleModuleInfo = @{
Name = 'PsBundle'
ProviderType = 'github'
Source = 'Nemo157/PsBundle'
}
$global:PsBundle.Modules.Requested += $PsBundleModuleInfo
$global:PsBundle.Modules.Installed += $PsBundleModuleInfo