]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Update watched repositories.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 109783acc7dfb244a81fbea833c554a14346e209..a240789c0838ddbec6318a2e1f1a769eda187215 100644 (file)
@@ -46,6 +46,9 @@ $env:minion = "$env:src\minion"
 $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"
@@ -55,8 +58,10 @@ if($modPaths.length -eq 0){
 }
 $modPaths | ForEach-Object {
        $fileName = $_.FullName
-       Import-Module $fileName
-       Write-Host ">> Loaded $fileName"
+       if($filename -Like "*.psm1") {
+               Import-Module $fileName
+               Write-Host ">> Loaded $fileName"
+       }
 }
 
 
@@ -108,10 +113,25 @@ function Get-GitStatus() {
        git status -b --short
 }
 
+# Tell my scripts which GitHub repositories to look in.
+$env:GITHUB_USERNAME = 'edthedev'
+$env:GITHUB_REPOS = @(
+       'techservicesillinois/SecOps-Tools', 
+       'techservicesillinois/secdev-job-aids', 
+       'techservicesillinois/awscli-login', 
+       'techservicesillinois/farmit',
+       'uillinois-community/uillinois-community.github.io',
+       'techservicesillinois/SecOps-Powershell-CSOC'
+)
+
 # Nice for git
 New-Alias ol           Get-GitLog
 New-Alias st           Get-GitStatus
 
 # Dashboard
-New-Alias dash   Get-MyDashboard # from dash.psm1
+New-Alias dash   Show-MyDashboard # from dash.psm1
 New-Alias agenda Get-JournalAgenda # from minion_go.psm1
+
+function Invoke-FixWslVPN {
+       Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64"} | Set-NetIPInterface -InterfaceMetric 6000
+}
\ No newline at end of file