Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing source of helper func to man complete | Tom Ryder | 2018-12-02 | 1 | -0/+5 |
| | |||||
* | Correct manpath(1) command in man completion | Tom Ryder | 2018-12-02 | 1 | -1/+1 |
| | | | | | I added the "a" as a quick-and-dirty test for the fallback condition below it, and accidentally committed it in 7d6fe8b. | ||||
* | Adjust quoting and termination for man completion | Tom Ryder | 2018-12-02 | 1 | -3/+3 |
| | |||||
* | Update glob settings for manual page completion | Tom Ryder | 2018-12-02 | 1 | -12/+4 |
| | |||||
* | Make `sec` a local var in man page completion | Tom Ryder | 2018-12-02 | 1 | -0/+1 |
| | |||||
* | Overhaul Bash completion scripts | Tom Ryder | 2018-12-02 | 1 | -41/+54 |
| | | | | | | | | | | | 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 words | Tom Ryder | 2018-12-01 | 1 | -9/+5 |
| | | | | | 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. | ||||
* | Break up a couple of long lines | Tom Ryder | 2018-12-01 | 1 | -1/+3 |
| | |||||
* | Remove redundant error code in short circuits | Tom Ryder | 2018-12-01 | 1 | -1/+1 |
| | |||||
* | Adjust loop short circuits and pattern matches | Tom Ryder | 2018-12-01 | 1 | -3/+7 |
| | |||||
* | Remove null-result guard from completion gens | Tom Ryder | 2018-12-01 | 1 | -8/+2 |
| | | | | I don't believe these are needed anymore, or possibly ever were. | ||||
* | Use simpler method of no case completion check | Tom Ryder | 2018-12-01 | 1 | -11/+6 |
| | |||||
* | Drop support for Bash <= 3.0 | Tom Ryder | 2018-11-30 | 1 | -7/+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. | ||||
* | Add left-parens to inner case statements | Tom Ryder | 2018-10-31 | 1 | -2/+2 |
| | | | | | This helps older versions of Bash understand that the surrounding subshell isn't terminating. | ||||
* | Add missing ;; terminators | Tom Ryder | 2018-10-31 | 1 | -0/+1 |
| | |||||
* | Respect completion-ignore-case in custom functions | Tom Ryder | 2018-10-30 | 1 | -0/+14 |
| | | | | | | This involves a little too much boilerplate for my liking, but it's still an improvement over what I had before. I might find a way to make this into a generic function. | ||||
* | Use bashdefault if available in more completions | Tom Ryder | 2017-02-12 | 1 | -1/+7 |
| | |||||
* | Ignore stderr from manpath(1) check | Tom Ryder | 2016-12-25 | 1 | -1/+1 |
| | |||||
* | Add some missing "local" calls | Tom Ryder | 2016-12-12 | 1 | -0/+1 |
| | |||||
* | Prevent man(1) completion interfering with paths | Tom Ryder | 2016-12-09 | 1 | -0/+6 |
| | |||||
* | Handle empty filename completions better | Tom Ryder | 2016-08-30 | 1 | -6/+9 |
| | | | | | | Bash 4.4 hangs in an awkward way (probably outputting the literal null char in some unexpected context) without this; I'm not sure if this is a bug or whether it's just been tolerated behaviour until now. | ||||
* | Explicitly declare array to reassure shellcheck | Tom Ryder | 2016-08-23 | 1 | -3/+2 |
| | |||||
* | Use explicit -n test within [[ ]] | Tom Ryder | 2016-08-18 | 1 | -2/+2 |
| | | | | | Bash doesn't require it, but there's no real advantage to it and it's a better habit for complying with e.g. pdksh, which does | ||||
* | Move bash completion setup into separate dir | Tom Ryder | 2016-07-30 | 1 | -0/+63 |