Fix indentation, drop duplicate yum-arch.

This commit is contained in:
Ville Skyttä 2009-10-18 22:08:46 +03:00
parent 9636355bbe
commit c11af089d6

View File

@ -106,8 +106,8 @@ _yum()
COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) ) COMPREPLY=( $( compgen -W '$( _yum_repolist enabled )' -- $cur ) )
;; ;;
--disableexcludes) --disableexcludes)
COMPREPLY=( $( compgen -W '$( _yum_repolist all ) \ COMPREPLY=( $( compgen -W '$( _yum_repolist all ) all main' \
all main' -- $cur ) ) -- $cur ) )
;; ;;
--enableplugin|--disableplugin) --enableplugin|--disableplugin)
COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- $cur )) COMPREPLY=( $( compgen -W '$( _yum_plugins )' -- $cur ))
@ -149,28 +149,6 @@ _yum()
} && } &&
complete -F _yum $filenames yum complete -F _yum $filenames yum
# yum-arch(8) completion
#
have yum-arch &&
_yum_arch()
{
local cur
COMPREPLY=()
cur=`_get_cword`
case "$cur" in
-*)
COMPREPLY=( $( compgen -W '-d -v -vv -n -c -z -s -l -q' -- $cur ) )
;;
*)
_filedir -d
;;
esac
return 0
} &&
complete -F _yum_arch $filenames yum-arch
# Local variables: # Local variables:
# mode: shell-script # mode: shell-script
# sh-basic-offset: 4 # sh-basic-offset: 4