Created
July 12, 2013 08:53
-
-
Save ptantiku/5982923 to your computer and use it in GitHub Desktop.
Script for set RBENV path (for putting in .bashrc or .zshrc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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