Generate ZSH autocompletion file automatically
Created by: ollieparanoid
From https://github.com/postmarketOS/pmbootstrap/pull/1232#pullrequestreview-97368547:
create a follow up PR that lets pmbootstrap generate the completion file programmatically and put all the actions and flags into that completion file (with some argparse magic). Then we would have everything as static information, meaning the completion is as fast as possible, and only query the folder names dynamically. We could also insert the full path to the aports folder into the script, so it even works if the user is not in the
pmbootstrap
folder (and the user doesn't have to put it in manually). It could look like the following (similar topmbootstrap aportgen
):
pmbootstrap autocompgen --zsh