aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/make.bash
Commit message (Collapse)AuthorAgeFilesLines
* Two-space sentences in shell commentsTom Ryder2018-12-271-1/+1
|
* Remove now-unneeded shellcheck disable rulesTom Ryder2018-12-171-1/+0
| | | | | | | These two comments disabling SC2154 were added in commit 5fa3ef7, because ShellCheck 0.50 did not recognise the NAME pointed to by `read -a NAME` commands as an array assignment. This bug has been corrected in ShellCheck 0.60, meaning that these comments are no longer required.
* Disable shellcheck rules for missed definitionTom Ryder2018-12-071-1/+1
| | | | These two arrays are both defined by `read -a`.
* Remove unneeded local varTom Ryder2018-12-021-1/+1
|
* Remove unneeded `local` declarationTom Ryder2018-12-021-1/+0
|
* Reorder pattern filters for Makefile linesTom Ryder2018-12-021-2/+2
|
* Overhaul Bash completion scriptsTom Ryder2018-12-021-40/+53
| | | | | | | | | | | 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-1/+1
| | | | | 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.
* Adjust loop short circuits and pattern matchesTom Ryder2018-12-011-3/+4
|
* 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.
* Use bashdefault if available in more completionsTom Ryder2017-02-121-1/+7
|
* Add some missing "local" callsTom Ryder2016-12-121-0/+1
|
* Observe POSIX spec for looking for Makefile nameTom Ryder2016-10-211-3/+8
|
* Skip comments in Makefile Bash completionTom Ryder2016-09-051-0/+1
|
* Add -r to read to placate shellcheckTom Ryder2016-08-231-1/+1
|
* Move bash completion setup into separate dirTom Ryder2016-07-301-0/+44