pacapt icon indicating copy to clipboard operation
pacapt copied to clipboard

Is shell completion supported?

Open pabru opened this issue 9 years ago • 4 comments

Hi @icy,

Do you know if shell completion is implemented in pacapt? If not, (and if it's doable for me) I could start working on it as I really like being able to do this with native apt and pacman binaries.

What do you think?

pabru avatar Jul 07 '16 11:07 pabru

Oh I haven't thought of that (I personally doesn't use any kind of completions except the default <tab>). It's really great if you could start autocompletion support. Thanks a ton!

icy avatar Jul 07 '16 11:07 icy

@pabru Why don't use bash completion for pacman?

You can do the same as bash does for pacman in /usr/share/bash-completion/completions/pacman for pacapt

cuonglm avatar Jul 07 '16 15:07 cuonglm

Hi @Gnouc. I was thinking about things like package name completion (i.e. something like pacman -S openssh-ser<TAB> gets autocompleted to pacman -S openssh-server) as that saves some typing. I was also initially thinking of Bash support only as I don't have experience with the other shells.

I think I could base my bash autocomplete on the existing apt-get etc. completions, with a few modifications.

pabru avatar Jul 07 '16 22:07 pabru

It would be great to have

sevu avatar Feb 02 '19 23:02 sevu