Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/www/intesco.ru/d59ed/
Upload File :
Current File : /var/www/iplanru/data/www/intesco.ru/d59ed/bash_completion.d.tar

apache2.2-common000066600000001662150770535430007442 0ustar00# bash completion for Debian apache2 configuration tools
# $Id: apache2,v 1.1 2005/03/16 22:51:19 guillaume Exp $

_apache2_modsites()
{
       COMPREPLY=( $( compgen -W '$( command ls /etc/apache2/$1 2>/dev/null \
               | sed -e 's/[.]load$//' -e 's/[.]conf$//' )' -- $cur  ) )
}

_a2enmod()
{
       local cur

       COMPREPLY=()
       cur=${COMP_WORDS[COMP_CWORD]}

       _apache2_modsites mods-available
}
complete -F _a2enmod a2enmod

_a2ensite()
{
       local cur

       COMPREPLY=()
       cur=${COMP_WORDS[COMP_CWORD]}

       _apache2_modsites sites-available

}
complete -F _a2ensite a2ensite

_a2dismod()
{
       local cur

       COMPREPLY=()
       cur=${COMP_WORDS[COMP_CWORD]}

       _apache2_modsites mods-enabled
}
complete -F _a2dismod a2dismod

_a2dissite()
{
       local cur

       COMPREPLY=()
       cur=${COMP_WORDS[COMP_CWORD]}

       _apache2_modsites sites-enabled

}
complete -F _a2dissite a2dissite
insserv000066600000001340150770535430006173 0ustar00# insserv(8) completion
#
# Copyright (c) 2009 Kel Modderman <kel@otaku42.de>
#

have insserv &&
_insserv()
{
    local cur prev sysvdir services options

    cur=`_get_cword`
    prev=${COMP_WORDS[COMP_CWORD-1]}

    [ -d /etc/rc.d/init.d ] && sysvdir=/etc/rc.d/init.d \
	|| sysvdir=/etc/init.d

    services=( $(echo $sysvdir/!(README*|*.dpkg*|*.rpm@(orig|new|save))) )
    services=( ${services[@]#$sysvdir/} )
    options=( -c --config -d -f -n -o --override -p --path -r -v )

    case "$prev" in
	-c|--config)
	    _filedir
	    ;;
	-o|--override|-p|--path)
	    _filedir -d
	    ;;
	*)
	    COMPREPLY=( $( compgen -W '${options[@]} ${services[@]}' -- \
		$cur ) )
	    ;;
    esac

    return 0
} &&
complete -F _insserv insserv
initramfs-tools000066600000001311150770535430007632 0ustar00# update-initramfs(8) completion

_update_initramfs()
{
	local cur prev valid_options

	# TODO: this can be "_get_comp_words_by_ref cur prev" once
	# bash-completion >= 1.2 is available, see #537139
	cur=$(_get_cword)
	prev=${COMP_WORDS[COMP_CWORD-1]}

	# The only option that takes an argument is -k
	if [[ "$prev" == '-k' ]]; then
		# Complete with kernel versions
		_kernel_versions
		COMPREPLY=( $( compgen -W '${COMPREPLY[@]} all' -- "$cur" ) )
		return;
	fi

	# Complete with available options (obtained from -h)
	valid_options=$( update-initramfs -h 2>&1 | \
		sed -e '/^ -/!d;s/^ \(-\w\+\).*/\1/' )
	COMPREPLY=( $( compgen -W "$valid_options" -- $cur ) )
}

complete -F _update_initramfs update-initramfs
debconf000066600000000445150770535430006107 0ustar00have debconf-show &&
_debconf_show()
{
        local cur

        COMPREPLY=()
        cur=${COMP_WORDS[COMP_CWORD]}
        COMPREPLY=($( compgen -W '--listowners --listdbs --db=' -- $cur ) \
                        $( apt-cache pkgnames -- $cur ) )
}
complete -F _debconf_show debconf-show