]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Updates to match 2022 August Journal setup
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 8c70b3e67549a9ba19435b0b880eb99ab2aa9ba0..c2b9bb0d8a630114b9558ccb751a7b2864d79ebf 100644 (file)
@@ -1,4 +1,4 @@
-# .EXAMPLE
+#WebDriverException: Message: unknown error: cannot determine loading status .EXAMPLE
 # . C:\src\dotfiles\Microsoft.PowerShell_profile.ps1
 
 # Courtesty of MKletz
 # . C:\src\dotfiles\Microsoft.PowerShell_profile.ps1
 
 # Courtesty of MKletz
 
 $env:src = "~\src"
 if($IsWindows){
 
 $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: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.
        $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+=";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
 }
 
 }
 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/
 
 # 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.
 $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/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*' }
 
 ) -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
 
 # 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
 
 # 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/$(Get-Date -Format "yyyy/MM-dd").md"
+}
+New-Alias agenda 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
 
 function Invoke-FixWslVPN {
        Get-NetAdapter | Where-Object {$_.InterfaceDescription -Match "Cisco AnyConnect Secure Mobility Client Virtual Miniport Adapter for Windows x64"} | Set-NetIPInterface -InterfaceMetric 6000