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

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

rbenv: upgrade to v1.0.0, take over maintenance

File size: 745 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 fish ) 
    9595;;
    9696esac
    9797
    98 completion="${root}/completions/rbenv.${shell}"
    99 if [ -r "$completion" ]; then
    100   case "$shell" in
    101   fish ) echo ". '$completion'" ;;
    102   *    ) echo "source '$completion'" ;;
    103   esac
    104 fi
     98case "$shell" in
     99bash )
     100  echo "source \"$root/etc/bash_completion.d/rbenv\""
     101  ;;
     102zsh )
     103  echo "source \"$root/share/zsh/site-functions/rbenv.zsh_completion\""
     104  ;;
     105# support for fish and other shells missing
     106esac
    105107
    106108if [ -z "$no_rehash" ]; then
    107109  echo 'command rbenv rehash 2>/dev/null'
Note: See TracBrowser for help on using the repository browser.