You are not logged in.

#1 2019-09-23 13:24:33

arch_kk_linux
Member
Registered: 2017-02-17
Posts: 54

[Solved]Auto completion not working with 'yay'

Though I have installed

bash-completion

, It is not  working with

yay.

however it works fine with

pacman.

Can any one shed some light on this issue?

Last edited by arch_kk_linux (2019-09-27 23:34:00)

Offline

#2 2019-09-24 10:00:37

Atari
Member
Registered: 2016-04-20
Posts: 38

Re: [Solved]Auto completion not working with 'yay'

Hi there,
I think it's because the package pacman ships the script for completion on its own, regardless of bash-completion.
The package bash-completion contains a set of ad-hoc rules for some specific commands. Basically the way the mechanism (not the package) for bash completion works is that each command has to define its own rules on how to perform the auto completion. There is no magic mechanism to infer the autocomplete for a command and typically packages do not define it, which I assume it's also the case of yay.

Last edited by Atari (2019-09-24 10:18:56)

Offline

#3 2019-09-24 10:38:16

mephysto
Member
Registered: 2019-09-03
Posts: 2

Re: [Solved]Auto completion not working with 'yay'

Please do not use yay, it is not so secure.

Offline

#4 2019-09-24 13:19:06

seth
Member
Registered: 2012-09-03
Posts: 63,655

Re: [Solved]Auto completion not working with 'yay'

Yay seems to ship an autocompletion script (for bash, fish and zsh): https://github.com/Jguer/yay/tree/master/completions

pacman -Ql yay | grep complet

, then stat that file (if any)

@mephysto, do you have any source for that claim (CVE, bug, …)?
pacman/AUR helpers do not have a very good reputation here, but mostly because they really often fuck up and maintain a certain inexperience in their users (what's not the idea behind archlinux), but we should not spread FUD to talk ppl. out of them, because that would just weaken legit criticism and ultimately the user will have to decide for him- or herself whether or not to use one and which (and learn that it wasn't a good idea ;-)

Offline

#5 2019-09-27 23:33:39

arch_kk_linux
Member
Registered: 2017-02-17
Posts: 54

Re: [Solved]Auto completion not working with 'yay'

Thanks Marking as Solved.

Offline

#6 2019-09-28 06:24:08

seth
Member
Registered: 2012-09-03
Posts: 63,655

Re: [Solved]Auto completion not working with 'yay'

Offline

#7 2019-09-29 05:59:46

arch_kk_linux
Member
Registered: 2017-02-17
Posts: 54

Re: [Solved]Auto completion not working with 'yay'

My bad, the issue is resolved once I removed the cache.

[kk@k ~]$ yay -Sc

proof:

[kk@k ~]$ yay -S sof
sofa                         softethervpn                 softflowd                    softplan-websigner
sofa-shared                  softethervpn-beta            softhsm                      softsusy
sofastats                    softethervpn-client-manager  softmaker-office-2012-bin    softwerk
sofia-sip                    softethervpn-git             softmaker-office-2016-bin    
sofia-sip-bc                 softethervpn-server-manager  softmaker-office-2018-bin  

Offline

#8 2019-09-29 06:41:48

seth
Member
Registered: 2012-09-03
Posts: 63,655

Re: [Solved]Auto completion not working with 'yay'

Sounds more as if the autocompletion script is broken and you want to report that upstream?

Offline

#9 2019-09-29 07:17:47

arch_kk_linux
Member
Registered: 2017-02-17
Posts: 54

Re: [Solved]Auto completion not working with 'yay'

of course I want to, As I'm new to this I don't know exactly how to report it. If you have any Idea about the procedure I would be glad to follow.
Having said that I will try from my end too to figure out way to report such things to upstream.

Offline

#10 2019-09-29 07:26:06

seth
Member
Registered: 2012-09-03
Posts: 63,655

Re: [Solved]Auto completion not working with 'yay'

You can find the upstream URL from the package info (and I also linked it before)
It's a github repo, github repos have an issue tracker: https://github.com/Jguer/yay/issues

Offline

Board footer

Powered by FluxBB