mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
add missing options and operations to zsh
Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
parent
e5470c88c6
commit
fc3738c060
@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// A basic set implementation for strings.
|
||||
// This is used a lot so it deserves its own type.
|
||||
// A basic set implementation for strings.
|
||||
// This is used a lot so it deserves its own type.
|
||||
// Other types of sets are used throughout the code but do not have
|
||||
// their own typedef.
|
||||
// String sets and <type>sets should be used throughout the code when applicable,
|
||||
|
@ -10,9 +10,11 @@ _pacman_opts_commands=(
|
||||
{-G,--getpkgbuild}'[Get PKGBUILD from ABS or AUR]'
|
||||
{-Q,--query}'[Query the package database]'
|
||||
{-R,--remove}'[Remove a package from the system]'
|
||||
{-P,--print}'[Print yay information]'
|
||||
{-S,--sync}'[Synchronize packages]'
|
||||
{-T,--deptest}'[Check if dependencies are installed]'
|
||||
{-U,--upgrade}'[Upgrade a package]'
|
||||
{-Y,--yay}'[Yay specific options]'
|
||||
{-V,--version}'[Display version and exit]'
|
||||
'(-h --help)'{-h,--help}'[Display usage]'
|
||||
)
|
||||
@ -37,6 +39,12 @@ _pacman_opts_common=(
|
||||
'--noscriptlet[Do not execute the install scriptlet if one exists]'
|
||||
'--bottomup[Show AUR packages first]'
|
||||
'--topdown[Show repository packages first]'
|
||||
'--devel[Check -git/-svn/-hg development version]'
|
||||
'--nodevel[Disable development version checking]'
|
||||
'--afterclean[Clean package sources after successful build]'
|
||||
'--noafterclean[Disable package sources cleaning after successful build]'
|
||||
'--timeupdate[Check packages modification date and version]'
|
||||
'--notimeupdate[Check only package version change]'
|
||||
)
|
||||
|
||||
# options for passing to _arguments: options for --upgrade commands
|
||||
@ -80,6 +88,10 @@ _pacman_opts_query_modifiers=(
|
||||
{-u,--upgrades}'[List packages that can be upgraded]'
|
||||
)
|
||||
|
||||
_pacman_opts_yay_modifiers=(
|
||||
{-c,--clean}'[Remove unneeded dependencies]'
|
||||
'--gendb[Generates development package DB used for updating]'
|
||||
)
|
||||
# options for passing to _arguments: options for --remove command
|
||||
_pacman_opts_remove=(
|
||||
{-c,--cascade}'[Remove all dependent packages]'
|
||||
@ -458,6 +470,10 @@ _pacman_zsh_comp() {
|
||||
V*)
|
||||
_pacman_action_version
|
||||
;;
|
||||
Y*)
|
||||
"$_pacman_opts_common[@]" \
|
||||
"$_pacman_opts_sync_modifiers[@]"
|
||||
;;
|
||||
*)
|
||||
|
||||
case ${(M)words:#--*} in
|
||||
|
Loading…
Reference in New Issue
Block a user