Skip to content

Instantly share code, notes, and snippets.

@impostorsguides
Created January 15, 2024 18:18
Show Gist options
  • Save impostorsguides/bec6a1c0f520f703c6db259a472596c4 to your computer and use it in GitHub Desktop.
Save impostorsguides/bec6a1c0f520f703c6db259a472596c4 to your computer and use it in GitHub Desktop.
#!/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="/Users/richiethomas/.rbenv"
exec "/Users/richiethomas/.rbenv/libexec/rbenv" exec "$program" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment