[SOLVED] Pacman Completion for better user experience 10 May 2023, 06:03:23 How can we have Pacman Completion ?one that has ability to complete package name when on CLI at pacman argument by hitting tab or other preset key Last Edit: 24 May 2023, 10:11:15 by Hitman
Re: Pacman Completion for better user experience Reply #1 – 11 May 2023, 03:22:07 The pacman package already has bash completions in it:Code: [Select]$ pacman -Ql pacman....pacman /usr/share/bash-completion/pacman /usr/share/bash-completion/completions/pacman /usr/share/bash-completion/completions/makepkgpacman /usr/share/bash-completion/completions/pacmanpacman /usr/share/bash-completion/completions/pacman-key....There is usually a pause with pacman completions when you hit tab, while it searches for the package names. You might try installing the bash-completion package as well if it isn't working, perhaps that would help? It works here but I have bash-completion installed too for improved general usage completions. Or perhaps you need to run pacman -Sy on a fresh install to populate the databases?
Re: Pacman Completion for better user experience Reply #2 – 11 May 2023, 14:33:49 not at all work like shell prompt completion, but just:Code: [Select]$ sudo pacman -Ql papacman pam partedpacman-contrib pambase patchpacman-hook-kernel-install pango pavucontrolHow to configure up to hava as good ability as shell prompt one ?
Re: Pacman Completion for better user experience Reply #3 – 11 May 2023, 14:53:39 But what more can it do given only "pa" as the start of the next word, except give you a list of options? If you made it "par" then hit tab it would complete on "parted" but it can't guess from the 2 letters you have typed so far which one you want. What exactly would you like it to do here instead? 1 Likes