mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Fixed bash not showing AUR packages
This commit is contained in:
parent
fb05b8e973
commit
8065d83906
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue