KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21585/root/usr/share/doc/bash-3.2/complete/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21585/root/usr/share/doc/bash-3.2/complete/complete.freebsd
#Date: Wed, 31 Jan 2001 12:53:56 -0800
#From: Aaron Smith <aaron@mutex.org>
#To: freebsd-ports@freebsd.org
#Subject: useful bash completion function for pkg commands
#Message-ID: <20010131125356.G52003@gelatinous.com>

#hi all. i just wanted to share this bash completion function i wrote that
#completes package names for pkg_info and pkg_delete. i find this a great
#help when dealing with port management. programmed completion requires
#bash-2.04.

_pkg_func ()
{   
    local cur

    cur=${COMP_WORDS[COMP_CWORD]}

    if [[ $cur == '-' ]]; then
        if [[ ${COMP_WORDS[0]} == 'pkg_info' ]]; then
                COMPREPLY=(-a -c -d -D -i -k -r -R -p -L -q -I -m -v -e -l)
                return 0;
        elif [[ ${COMP_WORDS[0]} == 'pkg_delete' ]]; then
                COMPREPLY=(-v -D -d -n -f -p)
                return 0;
        fi
    fi

    COMPREPLY=( $(compgen -d /var/db/pkg/$cur | sed sN/var/db/pkg/NNg) )
    return 0
}
complete -F _pkg_func pkg_delete pkg_info

Anon7 - 2021