bash-completion
bash-completion copied to clipboard
lvm: improve completions for `lvremove`
It should have a completion for /dev/mapper path.
This is a fix for https://bugzilla.redhat.com/show_bug.cgi?id=2317249.
You can test it by running lvremove /d<TAB>.
I think we can add a test for /dev/mapper/.
I fixed the commit message to follow Conventional Commits and added a test.
When I run complete on lvremove /dev/ma, it gets completed to lvremove /dev/mapper/ with a space at the end, which doesn't really make sense, since you will want to continue filling that in with the actual devices there.
I'm not sure what will be a better way though