From: EdTheDev Date: Sun, 19 Nov 2023 03:08:31 +0000 (-0600) Subject: Merge branch 'main' of github.com:edthedev/dotfiles into main X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/7c9eb05847ada7beb5773c17397826125c6a5d96?hp=fb070725e7456eb5f66f432662bb5b18ed54dba1 Merge branch 'main' of github.com:edthedev/dotfiles into main --- diff --git a/doc/cli.md b/doc/cli.md new file mode 100644 index 0000000..6f9d3f9 --- /dev/null +++ b/doc/cli.md @@ -0,0 +1,19 @@ + +## Install my CLI utilities + +1. Install [GoLang][19] + +[19]: https://go.dev/doc/install + +1. Install utilities: + + ``` + echo "Installing todo finder." + go install github.com/edthedev/todolist@latest + + echo "Installing CLI line chart." + go install github.com/edthedev/chart@latest + + echo "Installing CLI agenda finder." + go install github.com/edthedev/agenda@latest + ``` \ No newline at end of file diff --git a/doc/shortcuts.md b/doc/shortcuts.md index 1aa87d9..3db2360 100644 --- a/doc/shortcuts.md +++ b/doc/shortcuts.md @@ -28,7 +28,6 @@ I have a bit of JavaScript in the HTML file I use for my homepage. It causes the ```html - ``` diff --git a/files/Microsoft.PowerShell_profile.ps1 b/files/Microsoft.PowerShell_profile.ps1 index 742acca..04d9c45 100644 --- a/files/Microsoft.PowerShell_profile.ps1 +++ b/files/Microsoft.PowerShell_profile.ps1 @@ -31,3 +31,9 @@ Import-Module "$env:psmodules\fix_vpn.psm1" # Let's face it, I'm about to cd into my source directory if((Get-Location).Path -eq $HOME){ cd $env:src } + +function Get-JournalAgenda() { + # Write-Host "Reading from $HOME\Journal\{YYYY}\{MM}-{DD}.md" + agenda.exe -path "$HOME\Journal\{YYYY}\{MM}-{DD}.md" +} +New-Alias today Get-JournalAgenda diff --git a/psmodules/dash.psm1 b/psmodules/dash.psm1 index 043a409..874fc0e 100644 --- a/psmodules/dash.psm1 +++ b/psmodules/dash.psm1 @@ -1,25 +1,26 @@ +function Get-JournalAgenda() { + agenda.exe -path "$HOME/Journal/{YYYY}/{MM}-{DD}.md" +} function Show-MyDashBoard() { Write-Host "" Write-Host "## Todo items for today:" - Measure-JournalTodos + # Measure-JournalTodos chart - Get-JournalTodayTodos + # Get-JournalTodayTodos Write-Host "" Write-Host "## Agenda for today:" Get-JournalAgenda Write-Host "" Write-Host "## GitHub Issues Assigned (Show-AgileMine)" # Show-AgileMine - Show-AgileMine -DaysAgo 6 + # Show-AgileMine -DaysAgo 6 Write-Host "" Write-Host "## GitHub Issues with no milestone. (Select-AgileNoMilestone)" Write-Host "(Get-AgileQuery -state 'Open' | Invoke-AgileQuery | Select-AgileNoMilestone | Show-MarkdownFromGitHub)" $milestone_repos = $env:github_repos.split(' ') | Where-Object { $_ -Match 'techservicesillinois' } - $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos - Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub - # $orphans_count = ($orphans | Measure-Object -Property updated_at -Min -Max).Count - # $orphans | Measure-Object -Property updated_at -Min -Max + # $queries = Get-AgileQuery -state 'Open' -repos $milestone_repos + # Invoke-AgileQuery -queries $queries | Select-AgileNoMilestone | Show-MarkdownFromGitHub Write-Host "" Write-Host "Use command 'todo' to list more tasks." Write-Host "Use command 'chart' to show todo item progress." diff --git a/win/setup/minion.ps1 b/win/setup/minion.ps1 deleted file mode 100644 index 089f380..0000000 --- a/win/setup/minion.ps1 +++ /dev/null @@ -1,2 +0,0 @@ -cd c:\src -git clone https://github.com/edthedev/minion.git \ No newline at end of file