This patch is needed to make
work without complaining about
-bash: /opt/local/bin/../completions/rbenv.bash: No such file or directory
--- libexec/rbenv-init.orig
@@ -95,10 +95,15 @@ fish )
-completion="${root}/completions/rbenv.${shell}"
-if [ -r "$completion" ]; then
- echo "source '$completion'"
+ echo "source \"$root/../etc/bash_completion.d/rbenv\""
+ echo "source \"$root/../share/zsh/site-functions/rbenv.zsh_completion\""
+# support for fish and other shells missing
if [ -z "$no_rehash" ]; then
echo 'command rbenv rehash 2>/dev/null'