From c70c80c789df88aa4ed079c7f8b6fcd4a23cb095 Mon Sep 17 00:00:00 2001 From: pml68 Date: Sun, 7 Sep 2025 12:03:10 +0200 Subject: feat: add -r/--remove flags --- shell-completions/aur.completor.bash | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'shell-completions/aur.completor.bash') diff --git a/shell-completions/aur.completor.bash b/shell-completions/aur.completor.bash index cb83422..0479f73 100644 --- a/shell-completions/aur.completor.bash +++ b/shell-completions/aur.completor.bash @@ -10,6 +10,8 @@ cmd_opts=( -g --git -c:@files --config:@files + -r:@pacman + --remove:@pacman ) reply_aur_pkgs() { @@ -17,3 +19,9 @@ reply_aur_pkgs() { COMPREPLY=( $(compgen -W "$pkgs" -- "$cur") ) } + +reply_pacman() { + pkgs=$(pacman -Qqm | paste -d ' ' -s -) + + COMPREPLY=( $(compgen -W "$pkgs" -- "$cur") ) +} -- cgit v1.2.3