Skip to content

Instantly share code, notes, and snippets.

@ptantiku
Created July 12, 2013 08:53
Show Gist options
  • Save ptantiku/5982923 to your computer and use it in GitHub Desktop.
Save ptantiku/5982923 to your computer and use it in GitHub Desktop.
Script for set RBENV path (for putting in .bashrc or .zshrc)
# setup RBENV's path
export RBENV_ROOT="$HOME/.rbenv"
if [ -d "$RBENV_ROOT" ]; then
if [ -d "$RBENV_ROOT/versions/$RBENV_VERSION" ]; then
export PATH="$RBENV_ROOT/versions/$RBENV_VERSION/bin:$PATH"
export PATH="$RBENV_ROOT/shims:$PATH"
else
export PATH="$RBENV_ROOT/bin:$PATH"
export PATH="$RBENV_ROOT/shims:$PATH"
fi
eval "$(rbenv init -)"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment