Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2012 11:07:20 -0400 (EDT)
From:      gtodd@bellanet.org
To:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   zsh/pkg - solaris completions used for pkgNG
Message-ID:  <alpine.BSF.2.00.1210181046350.86367@wawanesa.iciti.ca>

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

Just a heads up (or reminder) to zsh and pkg maintainers that - at least 
with zsh-5.0 - zshell's completion is picking up solaris pkg commands as 
targets. I remember a discussion of tab completion targets for pkgNG from 
several months ago but I'm not sure this particular issue was raised.

e.g.

~/ % pkg info -x pkg- zsh
pkg-1.0.1                      New generation package manager
zsh-5.0.0                      The Z shell

~/ % pkg [TAB]
add-property-value     list                   unavoid
avoid                  mediator               unfreeze
change-facet           property               uninstall
change-variant         publisher              unset-mediator
contents               purge-history          unset-property
facet                  rebuild-index          unset-publisher
fix                    refresh                update
freeze                 remove-property-value  update-format
help                   revert                 variant
history                search                 verify
image-create           set-mediator           version
info                   set-property
install                set-publisher

The completions come from:

/usr/local/share/zsh/5.0.0/functions/Completion/Solaris/_pkg5

A fix is to write completion for pkgNG one day ;-) or, for now, to simply 
remove that file from the zsh port. My guess is the _pkg5 functions can be 
hacked a bit to fit the needs of a very simple pkgNG but I haven't started 
doing that yet.

Regards,

grt



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