Hi Ian, Eric,

Attached is bash_completion support for cygport. (cygwin only)
Put it into /etc/bash_completion.d/cygport

Maybe it can be added to the package, though it's only useful for cygwin.
-- 
Reini
# -*- sh -*- cygport completion by Reini Urban <[EMAIL PROTECTED]> 
#
# $Id: cygport,v 1.1 2006/05/28 17:25:29 rurban Exp $

_cygport()
{
        local cur commands

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

        commands='download fetch wget get \
                prep unpack oldpatch compile build make \
                check test inst install list dep depends \
                info package pkg diff mkdiff mkpatch finish  \
                almostall all help version'

        if [[ $COMP_CWORD -eq 1 ]] ; then
                # first arg: source file completion
                _filedir 'cygport'
        else
                # 2nd++ arg: commands
                COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
        fi
        return 0
}
complete -F _cygport -o default cygport

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to