[MacPorts] #56963: New keywords for bash/zsh tab-completion
MacPorts
noreply at macports.org
Mon Aug 13 20:45:50 UTC 2018
#56963: New keywords for bash/zsh tab-completion
--------------------------+--------------------
Reporter: newtonne | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: base | Version:
Resolution: | Keywords:
Port: |
--------------------------+--------------------
Comment (by newtonne):
Hi Frank,
Some rudimentary grepping suggests the following ports install bash
completion:
{{{
$ ack -l "bash-completion|bash_completion"
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
| grep Portfile | sort | rev | cut -d/ -f2-3 | rev
archivers/unar
devel/bazel
devel/bzr
devel/cargo
devel/docker-machine
devel/docker
devel/git-cola
devel/git-flow-bash-completion
devel/git
devel/google-cloud-sdk
devel/gws
devel/hub
devel/mercurial
devel/ninja
devel/npm2
devel/npm3
devel/npm4
devel/npm5
devel/npm6
devel/redo
devel/subversion
devel/zanata-cli
gis/gdal
java/spring-boot-cli
lang/crystal
net/mosh
net/wireguard-tools
office/task
office/todotxt
python/py-django
python/py-django2
ruby/rbenv
science/plumed
security/pass
sysutils/bash-completion
sysutils/fd
sysutils/libvirt
sysutils/tarsnap
textproc/ripgrep
textproc/the_silver_searcher
www/blazeblogger
www/hugo
}}}
And these install zsh completion:
{{{
$ ack -l "site-functions"
/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
| grep Portfile | sort | rev | cut -d/ -f2-3 | rev
devel/bazel
devel/cargo
devel/docker
devel/gws
devel/hub
devel/mercurial
lang/crystal
office/task
ruby/rbenv
sysutils/autojump
sysutils/fd
sysutils/zsh-completions
textproc/ripgrep
}}}
I'm now thinking that something similar could also be done for
documentation/man pages too, which affects a lot more ports.
Instead of:
{{{
set destdocdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destdocdir}
copy ${worksrcpath}/license ${worksrcpath}/readme ${destdocdir}
}}}
You could have something like:
{{{
documentation ${worksrcpath}/license ${worksrcpath}/readme
}}}
--
Ticket URL: <https://trac.macports.org/ticket/56963#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list