delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/28/12:39:43

X-Spam-Check-By: sourceware.org
Message-ID: <4479C288.8060109@x-ray.at>
Date: Sun, 28 May 2006 17:32:24 +0200
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.0.2) Gecko/20060404 SeaMonkey/1.0.1
MIME-Version: 1.0
To: Cygwin List <cygwin AT cygwin DOT com>, Ian Macdonald <ian AT caliban DOT org>
Subject: cygport bash_completion support
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------080205090205000604040502
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

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

--------------080205090205000604040502
Content-Type: text/plain;
 name="cygport"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="cygport"

# -*- sh -*- cygport completion by Reini Urban <rurban AT x-ray DOT at> 
#
# $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


--------------080205090205000604040502
Content-Type: text/plain; charset=us-ascii

--
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/
--------------080205090205000604040502--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019