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
RevLine 
[140661]1This patch is needed to make
2    eval "$(rbenv init -)"
3work without complaining about
4    -bash: /opt/local/bin/../completions/rbenv.bash: No such file or directory
5
6--- libexec/rbenv-init.orig
7+++ libexec/rbenv-init
8@@ -76,8 +76,11 @@ mkdir -p "${RBENV_ROOT}/"{shims,versions}
9 echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
10 
11 case "$shell" in
12-bash | zsh )
13-  echo "source \"$root/completions/rbenv.${shell}\""
14+bash )
15+  echo "source \"$root/etc/bash_completion.d/rbenv\""
16+  ;;
17+zsh )
18+  echo "source \"$root/share/zsh/site-functions/rbenv.zsh_completion\""
19   ;;
20 esac
21 
Note: See TracBrowser for help on using the repository browser.