source: trunk/dports/ruby/rbenv/files/patch-libexec-rbenv-init.diff @ 140661

Last change on this file since 140661 was 140661, checked in by mojca@…, 4 years ago

rbenv: fix initialization to specific paths that MacPorts is trying to follow

File size: 582 bytes
  • libexec/rbenv-init

    This patch is needed to make
        eval "$(rbenv init -)"
    work without complaining about
        -bash: /opt/local/bin/../completions/rbenv.bash: No such file or directory
    
    old new mkdir -p "${RBENV_ROOT}/"{shims,versions} 
    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/bash_completion.d/rbenv\""
     81  ;;
     82zsh )
     83  echo "source \"$root/share/zsh/site-functions/rbenv.zsh_completion\""
    8184  ;;
    8285esac
    8386
Note: See TracBrowser for help on using the repository browser.