aptpac
aptpac copied to clipboard
Add bash completions
Add bash completions for aptpac so that commands an be auto completed using <tab><tab>
. I am not sure but the bash completions file of apt may help a lot here.
Also I may try doing this if I get a chance.
Notes:
- https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial
- https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion-Builtins.html#Programmable-Completion-Builtins
I got an idea how to easily accomplish this. Just take a look on Pacman bash completion file https://gitlab.archlinux.org/pacman/pacman/-/blob/master/scripts/completion/bash_completion.in
@Itai-Nelken here is the first version of bash completion. Working well based on preliminary testing.