From owner-freebsd-ports@FreeBSD.ORG Sat Apr 4 19:00:58 2015 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 539A2C29; Sat, 4 Apr 2015 19:00:58 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (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 CB0EFC90; Sat, 4 Apr 2015 19:00:57 +0000 (UTC) Received: by layy10 with SMTP id y10so158164lay.0; Sat, 04 Apr 2015 12:00:55 -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=XIlrl4tugD10bQBGhK83E2A6TC84osp5uiyGLyGDHUU=; b=rnYJkT+GUj5hgdHK29jS/XaJsoeFK9jvprftl7krP65qTu3KTMRVWMo6XspM1bgLkE 9tA+yCItmTC3FKgJfTpeHgRrQp+xdOQpuOZGcA+kPMhO0zDfyzOHrQV6gFuHdUGHL+zq wFoNo2af9ai+l7c3VOU/lRooT1YHDWxsctfq+016YX95IsL248B83X8jj0pdz5WVhDnW QWqDfplMELbE7M/ZyutGkBRdE/A0PkaLd26AwsylyAmb07QiACvDF9NmJzBrcNPXFldF pL6Xc+DgqgMzsJg+wdFxJujhGPrZ6OjIh3XIM5TEy6ZqSrempcsCxSky/7wnowy7fBBA Vytw== MIME-Version: 1.0 X-Received: by 10.112.26.209 with SMTP id n17mr6998884lbg.84.1428174055873; Sat, 04 Apr 2015 12:00:55 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.108.168 with HTTP; Sat, 4 Apr 2015 12:00:55 -0700 (PDT) In-Reply-To: <20150404181840.GD20155@ivaldir.etoilebsd.net> References: <20150402201909.GD30115@ivaldir.etoilebsd.net> <79DCE8388D31F662B15D7B4A@atuin.in.mat.cc> <20150404181840.GD20155@ivaldir.etoilebsd.net> Date: Sat, 4 Apr 2015 12:00:55 -0700 X-Google-Sender-Auth: skmztYmwqBeFGz-HyrIr0-qImSY Message-ID: Subject: Re: Share your pkg aliases From: Craig Rodrigues To: Baptiste Daroussin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Mathieu Arnold , pkg , "ports@freebsd.org" 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 19:00:58 -0000 On Sat, Apr 4, 2015 at 11:18 AM, Baptiste Daroussin wrote: > On Sat, Apr 04, 2015 at 11:05:10AM -0700, Craig Rodrigues wrote: > > On Sat, Apr 4, 2015 at 1:50 AM, Mathieu Arnold wrote: > > > > > +--On 3 avril 2015 12:47:31 -0700 Craig Rodrigues| > > > | 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. > > > > > > It's picked up automatically when you install shells/bash-completion. > > > > > > > > Cool. shells/bash-completion *does* work with pkg. > > It would be cool if shells/bash-completion was automatically installed > > when the bash port is installed, so that the average user does not have > > to do any other setup, and things *just work* out of the box. > > > > It would also give the pkg developers incentive to keep the bash > completion > > updated and in sync as new pkg sub commands and command flags are > > added. > > None of the pkg developpers are using bash or bash completion so ... we are > That may be true, but I see that a few pkg committers use zsh. One thing that I can see that the pkg project could do is instead of having separate completion files for bash and zsh, only have one for bash. zsh can grok bash completions. That way you will only have one file to maintain, and zsh and bash users can test it and benefit from it. For example, right now, if I "pkg install tmux", if I use zsh as my shell, it groks the bash completions that come with the tmux port. I agree with you that it is unfortunate that bash completions is not part of bash itself. Maybe we can add a dependency to shells/bash if bash is installed, it installs the bash-completion port as well. It's a minor thing, but improves the out of the box user experience of the command-line. -- Craig