SciProfile.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 |
# =========================================================================== # SciProfile.psm1 --------------------------------------------------------- # =========================================================================== # settings ---------------------------------------------------------------- # --------------------------------------------------------------------------- $path = $MyInvocation.MyCommand.Path $name = [System.IO.Path]::GetFileNameWithoutExtension($path) $Module = New-Object -TypeName PSObject -Property @{ Name = $name Dir = Split-Path -Path $path -Parent Config = Get-ConfigProjectFile -Name $name } # configuration ----------------------------------------------------------- # --------------------------------------------------------------------------- New-ProjectConfigDirs -Name $Module.Name.toLower() . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Default.ps1") . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Config.ps1") # functions --------------------------------------------------------------- # --------------------------------------------------------------------------- . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Functions.ps1") # environment ------------------------------------------------------------- # --------------------------------------------------------------------------- . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Environment.ps1") # aliases ----------------------------------------------------------------- # --------------------------------------------------------------------------- . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Alias.ps1") # settings ---------------------------------------------------------------- # --------------------------------------------------------------------------- . $(Join-Path -Path $Module.Dir -ChildPath "$($Module.Name)_Settings.ps1") |