From 82e1f3835335d143bbbf8cb0378ff36822ea9483 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 3 Sep 2025 18:42:44 +0200 Subject: feat: add -v/--version option --- shell-completions/aur.completor.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 shell-completions/aur.completor.bash (limited to 'shell-completions/aur.completor.bash') diff --git a/shell-completions/aur.completor.bash b/shell-completions/aur.completor.bash new file mode 100644 index 0000000..cb83422 --- /dev/null +++ b/shell-completions/aur.completor.bash @@ -0,0 +1,19 @@ +# shellcheck disable=SC2034 +output=aur-completion.bash +cmd=aur +cmd_args=@aur_pkgs +cmd_opts=( + -h --help + -v --version + -l --list + -f --force + -g --git + -c:@files + --config:@files +) + +reply_aur_pkgs() { + pkgs=$(basename -a ~/.aur/*/ | paste -d ' ' -s -) + + COMPREPLY=( $(compgen -W "$pkgs" -- "$cur") ) +} -- cgit v1.2.3