Indent according to modeline.

This commit is contained in:
Ville Skyttä 2009-03-30 22:21:14 +03:00
parent 23e1851605
commit 2bb6beb8da

View File

@ -76,13 +76,16 @@ _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
@ -95,21 +98,25 @@ _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 ) )
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) \
all main' -- $cur ) )
;;
*)
COMPREPLY=( $( compgen -W 'install update check-update \
upgrade remove erase list info provides whatprovides \
clean makecache groupinstall groupupdate grouplist \
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 ) )
localinstall localupdate deplist repolist \
help' -- $cur ) )
;;
esac
}
@ -127,7 +134,8 @@ _yum_arch()
case "$cur" in
-*)
COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l -q' -- $cur ) )
COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l \
-q' -- $cur ) )
;;
*)
_filedir -d