X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/5ee531c188fda7cdba30b98b3a13be02684275fa..583b960ef78bba2304bd3ac937e5d67456f80fd4:/Microsoft.PowerShell_profile.ps1?ds=inline diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index e209e2e..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. @@ -116,14 +122,11 @@ $env:GITHUB_REPOS = @( 'techservicesillinois/farmit', 'uillinois-community/uillinois-community.github.io', 'techservicesillinois/SecOps-Powershell-CSOC', - 'techservicesillinois/SecOps-Powershell-CISDSC' + '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 @@ -131,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