[MacPorts] #37961: zsh: port completion is no longer available (+mp_completion)

MacPorts noreply at macports.org
Wed Feb 6 16:58:24 PST 2013


#37961: zsh: port completion is no longer available (+mp_completion)
-------------------------+--------------------------------
 Reporter:  jrblevin@…   |      Owner:  macports-tickets@…
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.1.3
 Keywords:               |       Port:  zsh
-------------------------+--------------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/37961>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list