Fixed bash not showing AUR packages

This commit is contained in:
Jguer 2017-04-10 00:01:19 +01:00
parent fb05b8e973
commit 8065d83906
2 changed files with 5 additions and 3 deletions

View file

@ -90,8 +90,8 @@ _yay() {
_pacman_pkg Qq;;
S)
{ _arch_incomp 'g groups' && _pacman_pkg Sg; } ||
{ _arch_incomp 'l list' && $(yay --complete bash); } ||
_pacman_pkg Slq;;
{ _arch_incomp 'l list' && _arch_compgen "$(yay --complete bash | \sort -u)"; } ||
_arch_compgen "$(yay --complete bash)";;
U)
_pacman_file;;
esac

View file

@ -62,7 +62,9 @@ func parser() (op string, options []string, packages []string, err error) {
case "--topdown":
util.SortMode = util.TopDown
case "--complete":
util.Shell = os.Args[i+2]
if os.Args[i+1] != "" {
util.Shell = os.Args[i+1]
}
yay.Complete()
os.Exit(0)
case "--help":