scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.9k stars 380 forks source link

env: Complete command as well #1111

Closed hseg closed 5 months ago

hseg commented 7 months ago

Describe the feature/solution

env's completion currently completes long flags and filenames. Could we instead have env complete like sudo, where it first completes env's flags with their parameters, then some sequence of words containing = (perhaps using _comp_variable_assignments?), then a command (using _comp_command_offset)?

Maintenance (please complete the following information)

scop commented 7 months ago

Makes sense, https://github.com/scop/bash-completion/pull/1118

hseg commented 6 months ago

Given #1118 has been merged (and a quick check confirms it works pretty much as expected), this can be closed, no?

scop commented 5 months ago

Ah yes, I should have used "Closes" instead of "Refs" in the commit message to make that happen automatically. Thanks!