summaryrefslogtreecommitdiff
path: root/completions/_yum
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_yum')
-rw-r--r--completions/_yum33
1 files changed, 17 insertions, 16 deletions
diff --git a/completions/_yum b/completions/_yum
index 9860c540..7b3f76a4 100644
--- a/completions/_yum
+++ b/completions/_yum
@@ -75,22 +75,22 @@ _yum()
case $prev in
list)
- COMPREPLY=( $( compgen -W 'all available updates \
- installed extras obsoletes recent' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'all available updates installed extras
+ obsoletes recent' -- "$cur" ) )
;;
clean)
- COMPREPLY=( $( compgen -W 'packages headers metadata \
- cache dbcache all' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'packages headers metadata cache dbcache
+ all' -- "$cur" ) )
;;
repolist)
- COMPREPLY=( $( compgen -W 'all enabled disabled' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'all enabled disabled' -- "$cur" ) )
;;
localinstall|localupdate)
# TODO: should not match *src.rpm
_filedir rpm
;;
-d|-e)
- COMPREPLY=( $( compgen -W '{0..10}' -- $cur ) )
+ COMPREPLY=( $( compgen -W '{0..10}' -- "$cur" ) )
;;
-c)
_filedir
@@ -99,20 +99,21 @@ _yum()
_filedir -d
;;
--enablerepo)
- COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' -- $cur ) )
+ COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' \
+ -- "$cur" ) )
;;
--disablerepo)
- COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) )
+ COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- "$cur" ) )
;;
--disableexcludes)
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) all main' \
- -- $cur ) )
+ -- "$cur" ) )
;;
--enableplugin|--disableplugin)
- COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- $cur ))
+ COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- "$cur" ) )
;;
--color)
- COMPREPLY=( $( compgen -W 'always auto never' -- $cur ))
+ COMPREPLY=( $( compgen -W 'always auto never' -- "$cur" ) )
;;
-R|-x|--exclude)
# argument required but no completions available
@@ -123,11 +124,11 @@ _yum()
return 0
;;
*)
- COMPREPLY=( $( compgen -W 'install update check-update upgrade \
- remove erase list info provides whatprovides clean makecache \
- groupinstall groupupdate grouplist groupremove groupinfo \
- search shell resolvedep localinstall localupdate deplist \
- repolist help' -- $cur ) )
+ COMPREPLY=( $( compgen -W 'install update check-update upgrade
+ remove erase list info provides whatprovides clean makecache
+ groupinstall groupupdate grouplist groupremove groupinfo
+ search shell resolvedep localinstall localupdate deplist
+ repolist help' -- "$cur" ) )
;;
esac