Commit Graph

9 Commits

Author SHA1 Message Date
Adin Klotz 867369a36f Add license & authorship info 2020-08-20 23:42:19 -04:00
Adin Klotz 59c76d1a2e Zsh gh completion: Add alias completion 2020-08-20 23:17:47 -04:00
Adin Klotz c3f0cabe84 Zsh gh completion: Add completion for issues 2020-08-20 23:17:47 -04:00
Adin Klotz 768e4e835d Zsh gh completion: Show PRs in descending order
This is a bit of a hack - rather than configuring the order properly,
which I can't figure out how to do properly, I'm just setting the zstyle
at the start, then resetting it at the end
2020-08-20 23:17:47 -04:00
Adin Klotz a3af763f46 Zsh: Rename gh `_pr_helper` to `__pr_numbers` 2020-08-20 23:17:47 -04:00
Adin Klotz 9f86b8a4c5 Zsh: Filter PRs in `gh` completion
e.g. `gh pr reopen` shows closed PRs, since that's what it probably wants,
and `gh pr view` shows all, not just open, PRs
2020-08-20 23:17:47 -04:00
Adin Klotz c477a23465 Zsh: Completion for PR numbers for gh commands 2020-08-20 23:17:47 -04:00
Adin Klotz b90c0a0a09 Zsh: Fix needing to press tab twice to complete gh
I needed to actually call the completion function at the bottom (`$@` is
the array of positional parameters, to get passed to the completion
function)
2020-08-20 23:17:47 -04:00
Adin Klotz 09020864d7 Zsh: Add completion script for `gh` 2020-08-20 23:17:18 -04:00