X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/7deb20931eb32532cfc8b5029e73145c7545a2d5..3118015f6f2718ba8d9143ab26b1b8840809b928:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index ea01aae..4df4971 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -15,7 +15,7 @@ if(-Not $IsWindows) { $IsWindows = ($env:OS -eq "Windows_NT") } -$env:src = "~" +$env:src = "~\src" if($IsWindows){ Write-Host "***Is Windows***" $env:src = "c:\src" @@ -29,14 +29,17 @@ if($IsWindows){ $ENV:PATH+=";C:\bin\x16emu" # Package management is nice. $ENV:PATH+=";C:\Program Files (x86)\GnuWin32\bin" # GNU Utils - i.e. rm $ENV:PATH+=";C:\PENGUIN" # Flag to ensure my profile kicked in. + $ENV:PATH+=";$env:src\x16-demo\tools" # x16 python tools + $ENV:PATH+=";$env:src\chart" # command line chart utility edthedev\chart } else { $ENV:PATH+=":$HOME/x16/x16-emulator" # x16 Emulator $ENV:PATH+=":$HOME/src/x16-demo/tools" # x16 python tools } + # alias renumber $HOME/src/x16-demo/ -$env:Journal = "~\Journal\2021" # allows cd $env:journal +$env:Journal = "~\Journal\2022" # allows cd $env:journal $env:minion = "$env:src\minion" # Import some home grown PowerShell modules, if they are installed. @@ -113,14 +116,29 @@ function Get-GitStatus() { # Tell my scripts which GitHub repositories to look in. $env:GITHUB_USERNAME = 'edthedev' -$env:GITHUB_ORG = 'techservicesillinois' -$env:GITHUB_REPOS = @('SecOps-Tools', 'secdev-job-aids', - 'awscli-login', 'farmit') +$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' +) -join ' ' +$ENV:TS_REPOS = $ENV:GITHUB_REPOS.split(' ') | Where { $_ -like 'techser*' } + +# Todo List +$ENV:PATH+=";$env:src\todolist" # todo list utility edthedev\todolist +$env:todolist = "C:\Users\delaport\Journal\2022" +# New-Alias todo todolist # 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