Itai-Nelken / aptpac

A simple wrapper for 'pacman' with a syntax similar to 'apt' to help people transitioning to Arch and Arch based distributions like Manjaro.
https://itai-nelken.github.io/aptpac/
MIT License
27 stars 5 forks source link

Add bash completions #26

Open Jai-JAP opened 2 years ago

Jai-JAP commented 2 years ago

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.

Itai-Nelken commented 2 years ago

Notes:

Jai-JAP commented 1 year ago

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

Jai-JAP commented 1 year ago

@Itai-Nelken here is the first version of bash completion. Working well based on preliminary testing.

aptpac.bash.txt