-function Start-Vault() {
- consul agent -dev # Run in Dev Mode
- vault sever -config c:\src\dotfiles\vaultconfig.hcl -address=http://127.0.0.1:8200 # Use local dev Consul as storage
+# Import some home grown PowerShell modules, if they are installed.
+#
+$modPaths = Get-Childitem -Path "$env:src\dotfiles\psmodules"
+$modPaths += Get-Childitem -Path "$env:minion\psmodule"
+
+# https://github.com/uillinois-community/powershell-scripts
+$modPaths += Get-Childitem -Path "$env:src\powershell-scripts\modules"
+
+# Windows Only Modules
+if($IsWindows){
+ $modPaths += Get-Childitem -Path "$env:src\dotfiles\win_psmodules"
+}
+if($modPaths.length -eq 0){
+ Write-Host "No modules found."
+}
+$modPaths | ForEach-Object {
+ $fileName = $_.FullName
+ if($filename -Like "*.psm1") {
+ Import-Module $fileName
+ Write-Host ">> Loaded $fileName"
+ }