Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Apr 2015 21:05:27 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Craig Rodrigues <rodrigc@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:  <20150404190527.GF20155@ivaldir.etoilebsd.net>
In-Reply-To: <CAG=rPVf_Qjk9f=3mepuVvxUJf1rGSK1%2Bn=AVO0FGmkgb5cNAtA@mail.gmail.com>
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> <CAG=rPVf_Qjk9f=3mepuVvxUJf1rGSK1%2Bn=AVO0FGmkgb5cNAtA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Pgaa2uWPnPrfixyx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Apr 04, 2015 at 12:00:55PM -0700, Craig Rodrigues wrote:
> On Sat, Apr 4, 2015 at 11:18 AM, Baptiste Daroussin <bapt@freebsd.org>
> wrote:
>=20
> > 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> wrot=
e:
> > >
> > > > +--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-completio=
n.
> > > >
> > > >
> > > 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 ha=
ve
> > > 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
> >
>=20
>=20
> That may be true, but I see that a few pkg committers use zsh.
>=20
> 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.
>=20
> 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.
>=20
> 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.
>=20
> It's a minor thing, but improves the out of the box user experience of the
> command-line.

As a maintainer of zsh, and heavy user of zsh I will never base any complet=
ion
for zsh on bash completion, for simple reasons I consider bash completion
hackish, and most of the time inefficient on zsh.

We are speaking of opensource software, if bash users want to see their
completion improved then they should just provide patches. I am a zsh guy a=
nd I
do not update zsh completion because of ENOTIME already so...

Best regards,
Bapt

--Pgaa2uWPnPrfixyx
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlUgNfcACgkQ8kTtMUmk6ExFLACfQ51OcujjxF8mtKOl12XGZtgO
QHsAoLUo9A3Nt2ZzXMAikv5j0OIbq8kG
=/qDP
-----END PGP SIGNATURE-----

--Pgaa2uWPnPrfixyx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150404190527.GF20155>