Opened 11 years ago

Last modified 10 years ago

#37961 closed enhancement

zsh: port completion is no longer available (+mp_completion) — at Initial Version

Reported by: jrblevin@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: zsh

Description

I upgraded my ports today and noticed that my tab completion was broken for the port command in zsh. While investigating this, I noticed that the zsh-devel port was marked obsolete in favor of the zsh port. I'm glad to see that the zsh port was brought up to date, but is it possible to restore the +mp_completion variant?

The patch should be straightforward. The mp_completion code from zsh-devel simply copied the _port file to the appropriate directory:

variant mp_completion description {Install port(1) completion file} {
    post-destroot {
        set sitedir ${prefix}/share/${my_name}/site-functions
        xinstall -m 0644 ${filespath}/_port \
            ${destroot}${sitedir}
    }
}

The _port file is, of course, still available in the repository:

http://trac.macports.org/browser/trunk/dports/shells/zsh-devel/files/_port?rev=100755

I verified that placing this file in /opt/local/share/zsh/site-functions restored my ability to use tab completion with the port command using the current zsh package.

Change History (0)

Note: See TracTickets for help on using tickets.