Skip to content

Instantly share code, notes, and snippets.

@unakatsuo
Created December 19, 2011 10:44
Show Gist options
  • Save unakatsuo/1496579 to your computer and use it in GitHub Desktop.
Save unakatsuo/1496579 to your computer and use it in GitHub Desktop.
rbenv init section in .bashrc/.bash_profile.
[[ -d "$HOME/.rbenv/bin" ]] && {
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
function rbsudo(){
sudo env - "PATH=$(rbenv root)/shims:$PATH" $*
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment