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 case $prev in
list) list)
COMPREPLY=( $( compgen -W 'all available updates installed extras obsoletes recent' -- $cur ) ) COMPREPLY=( $( compgen -W 'all available updates \
installed extras obsoletes recent' -- $cur ) )
;; ;;
clean) clean)
COMPREPLY=( $( compgen -W 'packages headers metadata cache dbcache all' -- $cur ) ) COMPREPLY=( $( compgen -W 'packages headers metadata \
cache dbcache all' -- $cur ) )
;; ;;
repolist) repolist)
COMPREPLY=( $( compgen -W 'all enabled disabled' -- $cur ) ) COMPREPLY=( $( compgen -W 'all enabled disabled' \
-- $cur ) )
;; ;;
localinstall|localupdate) localinstall|localupdate)
# TODO: should not match *src.rpm # TODO: should not match *src.rpm
@ -95,21 +98,25 @@ _yum()
_filedir -d _filedir -d
;; ;;
--enablerepo) --enablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist disabled )' -- $cur ) ) COMPREPLY=( $( compgen -W '$( _yum_repolist \
disabled )' -- $cur ) )
;; ;;
--disablerepo) --disablerepo)
COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) ) COMPREPLY=( $( compgen -W '$( _yum_repolist \
enabled )' -- $cur ) )
;; ;;
--disableexcludes) --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 \ COMPREPLY=( $( compgen -W 'install update \
upgrade remove erase list info provides whatprovides \ check-update upgrade remove erase list info \
clean makecache groupinstall groupupdate grouplist \ provides whatprovides clean makecache \
groupinstall groupupdate grouplist \
groupremove groupinfo search shell resolvedep \ groupremove groupinfo search shell resolvedep \
localinstall localupdate deplist repolist help' \ localinstall localupdate deplist repolist \
-- $cur ) ) help' -- $cur ) )
;; ;;
esac esac
} }
@ -127,7 +134,8 @@ _yum_arch()
case "$cur" in 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 _filedir -d