From owner-freebsd-ports@FreeBSD.ORG Sat Apr 4 03:15:30 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EC02A6FF; Sat, 4 Apr 2015 03:15:30 +0000 (UTC) Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB8B2A66; Sat, 4 Apr 2015 03:15:30 +0000 (UTC) Received: by igcau2 with SMTP id au2so73541455igc.1; Fri, 03 Apr 2015 20:15:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=GUsPeYG5/BT/6sYY2N3/B2t67X92IzczqviS3YuBwxQ=; b=BlSKMoIpNYQiIk0p0mQQ2GuRtxb01WaXTI+ZaFN2CBzCUUCWtVv1o0Yqo+0qITZAJX 0IupTTPyc5Df/yHvk3bfsMQNAACg4FMVaQJxxlRPxoKXRZROG3UtqQRq7aHf1w4QvZME GGrwpntYhVPNEBZPT3fVvaG4Xox37t31/dh2KCSjj1IctB37/6R72ILsyci9SgXGtbVf TMXCLvrq7RvkFekcCnkooqJfy2dDwrb6qoNSG0KX29GuDg5fDYHuLsBpIGG+4J5Fi54z J+I36gXfeam01if7i5x5xS/VL2owx9mhqAm7lYx5QPNVBrqfQYNER3PGAvjV5TcItYMI xWAg== MIME-Version: 1.0 X-Received: by 10.50.62.112 with SMTP id x16mr2141697igr.32.1428117329845; Fri, 03 Apr 2015 20:15:29 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.107.174.86 with HTTP; Fri, 3 Apr 2015 20:15:29 -0700 (PDT) In-Reply-To: References: <20150402201909.GD30115@ivaldir.etoilebsd.net> Date: Fri, 3 Apr 2015 20:15:29 -0700 X-Google-Sender-Auth: Drq9tkDLYM8Jt5yyjMc2Ii9hjCY Message-ID: Subject: Re: Share your pkg aliases From: Kevin Oberman To: Craig Rodrigues Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: pkg , "ports@freebsd.org" , Baptiste Daroussin X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2015 03:15:31 -0000 On Fri, Apr 3, 2015 at 12:47 PM, Craig Rodrigues wrote: > On Thu, Apr 2, 2015 at 1:19 PM, Baptiste Daroussin > wrote: > > > Hi, > > > > For pkg 1.5.0 we do plan to provide a default pkg.conf full of useful > > aliases, > > of course this is subjective, if you think you have added some useful > > aliases > > into your pkg.conf please share those so we can add them directly into > the > > next > > release. > > > > I notice that there is a /usr/local/etc/bash_completion.d/_pkg.bash file > which implements tab completion > for pkg commands. Is there a way to make this file get picked up > by default when ports-mgmt/pkg is installed, > instead of having to edit .bashrc? > > It's a minor thing, but tab completions are really nice for usability. > bash shell users can use this, but zsh also has a way to read bash > completion scripts. > > -- > Craig > And I keep meaning to write a tcsh completion script for pkg. Maybe I'll get to at least a basic one next week. I see that bash completion scripts are quite different, but I'll see if the _pkg.bash file can at least get me started. It does more than I'd probably get done in the first pass. -- Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com