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)
Change History (5)
Changed 11 years ago by macports@…
Attachment: | rbenv-init.patch added |
---|
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.
Use correct path of completion script for zsh/bash