aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/man.bash
Commit message (Collapse)AuthorAgeFilesLines
* Add missing source of helper func to man completeTom Ryder2018-12-021-0/+5
|
* Correct manpath(1) command in man completionTom Ryder2018-12-021-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 completionTom Ryder2018-12-021-3/+3
|
* Update glob settings for manual page completionTom Ryder2018-12-021-12/+4
|
* Make `sec` a local var in man page completionTom Ryder2018-12-021-0/+1
|
* Overhaul Bash completion scriptsTom Ryder2018-12-021-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 wordsTom Ryder2018-12-011-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 linesTom Ryder2018-12-011-1/+3
|
* Remove redundant error code in short circuitsTom Ryder2018-12-011-1/+1
|
* Adjust loop short circuits and pattern matchesTom Ryder2018-12-011-3/+7
|
* Remove null-result guard from completion gensTom Ryder2018-12-011-8/+2
| | | | I don't believe these are needed anymore, or possibly ever were.
* Use simpler method of no case completion checkTom Ryder2018-12-011-11/+6
|
* Drop support for Bash <= 3.0Tom Ryder2018-11-301-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 statementsTom Ryder2018-10-311-2/+2
| | | | | This helps older versions of Bash understand that the surrounding subshell isn't terminating.
* Add missing ;; terminatorsTom Ryder2018-10-311-0/+1
|
* Respect completion-ignore-case in custom functionsTom Ryder2018-10-301-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 completionsTom Ryder2017-02-121-1/+7
|
* Ignore stderr from manpath(1) checkTom Ryder2016-12-251-1/+1
|
* Add some missing "local" callsTom Ryder2016-12-121-0/+1
|
* Prevent man(1) completion interfering with pathsTom Ryder2016-12-091-0/+6
|
* Handle empty filename completions betterTom Ryder2016-08-301-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 shellcheckTom Ryder2016-08-231-3/+2
|
* Use explicit -n test within [[ ]]Tom Ryder2016-08-181-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 dirTom Ryder2016-07-301-0/+63