internal/scripts/postimport.ps1

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
# Add all things you want to run after importing the main code

# Load Tab Expansion
foreach ($file in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'tepp' '*.tepp.ps1') -ErrorAction Ignore)) {
    . Import-ModuleFile -Path $file.FullName
}

# Load Tab Expansion Assignment
. Import-ModuleFile -Path "$script:ModuleRoot\internal\tepp\assignment.ps1"

# Load License
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\license.ps1"

# Load expansions for Expand-PSUObject
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\expandedObjects.ps1"

# Load aliases shipped with this module
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\aliases.ps1"

# Load keybindings shipped with this module
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\keybindings.ps1"

# Load type aliases
. Import-ModuleFile -Path "$script:ModuleRoot\bin\type-aliases.ps1"

# Import aliases for Set-PSUPath
. Import-ModuleFile -Path "$script:ModuleRoot\internal\scripts\pathAliases.ps1"

# Convert-PSUObject Conversions
foreach ($file in (Get-ChildItem (Join-PSFPath $script:ModuleRoot 'internal' 'conversions'))) {
    . Import-ModuleFile -Path $file.FullName
}