aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/gpg.bash
Commit message (Collapse)AuthorAgeFilesLines
* Refactor some completions to avoid loopsTom Ryder2018-12-071-9/+4
|
* Overhaul Bash completion scriptsTom Ryder2018-12-021-9/+12
| | | | | | | | | | | Some general changes: * Apply case sensitivity switching in more contexts, using a dynamically loaded helper function * Use array counters for appending to COMPREPLY where possible * Lots more short-circuiting to limit structural depth These changes are expansive and there will definitely be bugs.
* Use the positional parameter aliases for wordsTom Ryder2018-12-011-2/+2
| | | | | The current word is available in $2, and the previous word in $3. That's easier (and maybe a bit less expensive) to dig out, so let's use it.
* Fix backwards test for gpg(1) completionTom Ryder2018-12-011-1/+2
|
* Remove redundant error code in short circuitsTom Ryder2018-12-011-1/+1
|
* Adjust loop short circuits and pattern matchesTom Ryder2018-12-011-3/+8
|
* Remove stray comment no longer applicableTom Ryder2018-12-011-2/+0
|
* Drop support for Bash <= 3.0Tom Ryder2018-11-301-5/+1
| | | | | | This allows removing a fair bit of boilerplate checking for the availability of `-o bashdefault` for the `complete` builtin, and greatly simplifies the minimum version check.
* Use bashdefault if available in more completionsTom Ryder2017-02-121-1/+7
|
* Tidy completion filesTom Ryder2016-07-301-1/+1
| | | | Add comments, add short-circuit to vared() completion
* Move bash completion setup into separate dirTom Ryder2016-07-301-0/+17