Opened 11 years ago

Last modified 11 years ago

#41488 new defect

rbenv @0.4.0 fails to initialize shell completion

Reported by: macports@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: ericmoret, spamivore+macports@…
Port: rbenv

Description

With zsh or bash, initializing rbenv outputs:

no such file or directory: /opt/local/bin/../completions/rbenv.zsh # or rbenv.bash

Attachments (1)

rbenv-init.patch (443 bytes) - added by macports@… 11 years ago.
Use correct path of completion script for zsh/bash

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by macports@…

Attachment: rbenv-init.patch added

Use correct path of completion script for zsh/bash

comment:1 Changed 11 years ago by ericmoret

Cc: eric.moret@… added

Cc Me!

comment:2 Changed 11 years ago by ShaharHD (Shahar Hadas)

Any progress on this?

comment:3 Changed 11 years ago by spamivore+macports@…

Cc: spamivore+macports@… added

Cc Me!

comment:4 Changed 11 years ago by spamivore+macports@…

The port is still broken. I don't know if the associated patch fixes it or not, but it can be worked around by closing standard error and sourcing the completion file directly. For example, I initialize rbenv in my ~/.profile as follows:

eval "$(rbenv init -)" 2>&-
. /opt/local/etc/bash_completion.d/rbenv

It works for me, and may tide others through until the port is properly fixed.

Note: See TracTickets for help on using tickets.