Skip to content

Instantly share code, notes, and snippets.

@niwo
Created January 30, 2013 11:12
Show Gist options
  • Save niwo/4672515 to your computer and use it in GitHub Desktop.
Save niwo/4672515 to your computer and use it in GitHub Desktop.
Global rbenv setup: enable for every user per default /etc/profile.d/rbenv.sh
# but this at /etc/profile.d/rbenv.sh
# rbenv setup - only add RBENV PATH variables if no single user install found
if [[ ! -d "${HOME}/.rbenv" ]]; then
export RBENV_ROOT=/opt/rbenv
export PATH="$RBENV_ROOT/bin:$PATH"
eval "$(rbenv init -)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment