X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/e4cbf2a9bf91a870e5de15a783b991f7444a2a97..583b960ef78bba2304bd3ac937e5d67456f80fd4:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 8c70b3e..075c5ca 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -1,4 +1,4 @@ -# .EXAMPLE +#WebDriverException: Message: unknown error: cannot determine loading status .EXAMPLE # . C:\src\dotfiles\Microsoft.PowerShell_profile.ps1 # Courtesty of MKletz @@ -10,12 +10,12 @@ $env:src = "~\src" if($IsWindows){ - Write-Host "***Is Windows***" $env:src = "c:\src" } if($IsWindows){ # Some Paths that are annoying to find/restore if the installer fails + $ENV:PATH+=";$env:src\bin" # anything else I need $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all $ENV:PATH+=";C:\Program Files\Git\cmd" # Version control is nice. $ENV:PATH+=";C:\ProgramData\chocolatey\bin" # Package management is nice. @@ -23,16 +23,22 @@ if($IsWindows){ $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 } +# Command line tools +$ENV:PATH+=";$env:src\chart" # command line chart utility edthedev\chart +$ENV:PATH+=";$env:src\agenda" # command line chart utility edthedev\chart +$ENV:PATH+=";$env:src\todolist" # todo list utility edthedev\todolist +$env:todolist = "C:\Users\delaport\Journal\" +# New-Alias todo todolist + # alias renumber $HOME/src/x16-demo/ -$env:Journal = "~\Journal\2022" # allows cd $env:journal +$env:Journal = "~\Journal" # allows cd $env:journal $env:minion = "$env:src\minion" # Import some home grown PowerShell modules, if they are installed. @@ -115,14 +121,12 @@ $env:GITHUB_REPOS = @( 'techservicesillinois/awscli-login', 'techservicesillinois/farmit', 'uillinois-community/uillinois-community.github.io', - 'techservicesillinois/SecOps-Powershell-CSOC' + 'techservicesillinois/SecOps-Powershell-CSOC', + 'techservicesillinois/SecOps-Powershell-CISDSC', + 'techservicesillinois/secops-splunk-null-router' ) -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 @@ -130,7 +134,11 @@ New-Alias st Get-GitStatus # Dashboard New-Alias dash Show-MyDashboard # from dash.psm1 -New-Alias agenda Get-JournalAgenda # from minion_go.psm1 + +function Get-JournalAgenda() { + agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md" +} +New-Alias today Get-JournalAgenda function Invoke-FixWslVPN { Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64"} | Set-NetIPInterface -InterfaceMetric 6000