Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2015 12:00:55 -0700
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        Baptiste Daroussin <bapt@freebsd.org>
Cc:        Mathieu Arnold <mat@freebsd.org>, pkg <pkg@freebsd.org>, "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: Share your pkg aliases
Message-ID:  <CAG=rPVf_Qjk9f=3mepuVvxUJf1rGSK1%2Bn=AVO0FGmkgb5cNAtA@mail.gmail.com>
In-Reply-To: <20150404181840.GD20155@ivaldir.etoilebsd.net>
References:  <20150402201909.GD30115@ivaldir.etoilebsd.net> <CAG=rPVf-wJHVbB5ivL_GcK1ahz8cdFW1BNwfO6jfGfqhc0OFWg@mail.gmail.com> <79DCE8388D31F662B15D7B4A@atuin.in.mat.cc> <CAG=rPVc0ZUaA191a1RErrF9gBG4nNmx0oUkQWccPvvKuM91Q8w@mail.gmail.com> <20150404181840.GD20155@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 4, 2015 at 11:18 AM, Baptiste Daroussin <bapt@freebsd.org>
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 <mat@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVf_Qjk9f=3mepuVvxUJf1rGSK1%2Bn=AVO0FGmkgb5cNAtA>