aboutsummaryrefslogtreecommitdiff
path: root/shell-completions/aur.completor.bash
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-09-07 12:03:10 +0200
committerpml68 <contact@pml68.dev>2025-09-07 12:03:10 +0200
commitc70c80c789df88aa4ed079c7f8b6fcd4a23cb095 (patch)
treec3bc5cba5b744c0af99d331e7f3d5185cd501b39 /shell-completions/aur.completor.bash
parentfeat: add Makefile (diff)
downloadaur-c70c80c789df88aa4ed079c7f8b6fcd4a23cb095.tar.gz
feat: add -r/--remove flags
Diffstat (limited to '')
-rw-r--r--shell-completions/aur.completor.bash8
1 files changed, 8 insertions, 0 deletions
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") )
+}