aboutsummaryrefslogtreecommitdiff
path: root/bash/bash_completion.d/path.bash
Commit message (Collapse)AuthorAgeFilesLines
* Use the positional parameter aliases for wordsTom Ryder2018-12-011-3/+3
| | | | | 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.
* Use simpler keyword complete for `path` subcommandTom Ryder2018-12-011-3/+11
|
* Break up a couple of long linesTom Ryder2018-12-011-1/+2
|
* Adjust loop short circuits and pattern matchesTom Ryder2018-12-011-2/+5
|
* 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
|
* 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.
* Add "pop" and "shift" methods to path()Tom Ryder2017-01-251-1/+1
|
* Remove misplaced \0 in completion funcTom Ryder2017-01-071-1/+1
|
* Handle empty filename completions betterTom Ryder2016-08-301-5/+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.
* Add -r to read to placate shellcheckTom Ryder2016-08-231-1/+1
|
* Update path() completionTom Ryder2016-08-201-3/+3
|
* Tidy completion filesTom Ryder2016-07-301-1/+0
| | | | Add comments, add short-circuit to vared() completion
* Move bash completion setup into separate dirTom Ryder2016-07-301-0/+60