userland
userland copied to clipboard
Add bash programmable completion for vcgencmd
Package the vcgencmd-completion.bash file as /usr/share/bash-completion/completions/vcgencmd to install.
The integration tests don't need to be shipped, but may help maintenance when updating the completion for future changes.
The CMakeLists.txt file may want:
install(FILES vcgencmd-completion.bash DESTINATION bash-completion/completions/vcgencmd)
But I'm not sure. I'd be happy to update the PR if that seems correct.
This seems useful.
@XECDesign how would this be best used in RPiOS? Would you install the file directly in /usr/share/bash-completion/?
Or just leave it to the user to install?
I'd modify the packaging to install it appropriately.