diff options
Diffstat (limited to 'shell-completions/aur.completor.bash')
| -rw-r--r-- | shell-completions/aur.completor.bash | 8 |
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") ) +} |
