Skip to content

Instantly share code, notes, and snippets.

@ryansch
Created April 13, 2011 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryansch/918375 to your computer and use it in GitHub Desktop.
Save ryansch/918375 to your computer and use it in GitHub Desktop.
ps1_rvm()
{
if command -v rvm-prompt >/dev/null 2>/dev/null ; then
if [[ ! $(rvm-prompt) == $OLD_RVM ]]; then
export OLD_RVM=$(rvm-prompt)
printf "$(rvm-prompt) "
fi
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment