X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/61d5c5093ebdf7b71a0c3a8743077178aa7d462d..2f3b1b61aec00f85bee53b1c5a9d4cc59a18e224:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 8dc6fdf..075c5ca 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -23,13 +23,19 @@ 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" # allows cd $env:journal @@ -121,10 +127,6 @@ $env:GITHUB_REPOS = @( ) -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\" -# New-Alias todo todolist # Nice for git New-Alias ol Get-GitLog @@ -132,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