Ticket #41488: rbenv-init.patch

File rbenv-init.patch, 443 bytes (added by macports@…, 11 years ago)

Use correct path of completion script for zsh/bash

  • rbenv-init

    old new  
    7676echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
    7777
    7878case "$shell" in
    79 bash | zsh )
    80   echo "source \"$root/completions/rbenv.${shell}\""
     79bash )
     80  echo "source \"$root/etc/${shell}_completion.d/rbenv\""
     81  ;;
     82zsh )
     83  echo "source \"$root/share/${shell}/site-functions/rbenv.${shell}_completion\""
    8184  ;;
    8285esac
    8386