X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/deeaaadbb2a3536a01baa9f7986402f1cb793263..86761e4aa546bc5ac66e993b5bde34e8e3abc7db:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 3396b53..075c5ca 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -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