Skip to content

Instantly share code, notes, and snippets.

@robins35
Created April 2, 2021 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robins35/f11346a590a3b970fe30bdde145832f4 to your computer and use it in GitHub Desktop.
Save robins35/f11346a590a3b970fe30bdde145832f4 to your computer and use it in GitHub Desktop.
.rbenv/shims/bundle
#!/usr/bin/env bash
set -e
[ -n "$RBENV_DEBUG" ] && set -x
program="${0##*/}"
if [ "$program" = "ruby" ]; then
for arg; do
case "$arg" in
-e* | -- ) break ;;
*/* )
if [ -f "$arg" ]; then
export RBENV_DIR="${arg%/*}"
break
fi
;;
esac
done
fi
export RBENV_ROOT="/home/my_user/.rbenv"
exec "/home/my_user/.rbenv/libexec/rbenv" exec "$program" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment