Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most tools in util-linux are missing completions #444

Open
olejorgenb opened this issue Aug 5, 2016 · 1 comment
Open

Most tools in util-linux are missing completions #444

olejorgenb opened this issue Aug 5, 2016 · 1 comment

Comments

@olejorgenb
Copy link
Contributor

olejorgenb commented Aug 5, 2016

https://en.wikipedia.org/wiki/Util-linux

These have upstream bash completion definitions.

But a quick attempt[1] at using bashcompinit didn't work flawlessly. (what is the policy on including bash completions btw?)

A crude way of finding out which tools are missing completion definitions:

# In directory util-linux/bash-completion
for x in *; do
    if [[ -z $_comps[$x] ]]; then echo $x; fi
done

This lists almost all the tools. (but it isn't a perfect test. If anyone know of a better way of looking up how a given command is completed I'd be interested)

[1]

bashcompinit
source ./lsblk  # is this the correct way?
lsblk --output F<tab>
# _lsblk_module:43: command not found: compopt
@olejorgenb
Copy link
Contributor Author

olejorgenb commented Dec 25, 2016

Note: seems https://github.com/RobSis/zsh-completion-generator works pretty well for generating the initial skeleton.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants