Skip to content

Instantly share code, notes, and snippets.

@metaskills
Created October 12, 2010 14:00
Show Gist options
  • Save metaskills/622202 to your computer and use it in GitHub Desktop.
Save metaskills/622202 to your computer and use it in GitHub Desktop.
function my-rvm-prompt() {
rvmvg=$(~/.rvm/bin/rvm-prompt v g)
if [[ x$rvmvg != x ]]; then
color=$fg[yellow]
[ x$rvmvg != x ] && echo " %{$color%}$rvmvg$reset_color%}"
fi
}
@metaskills
Copy link
Author

Interesting, may do that on my HomeMarks or other adhoc projects. I've spent more of my time developing gems/libs, like the adapter where I'm not so sure that works well, tho I could be very wrong. Been there before :)

@rmm5t
Copy link

rmm5t commented Oct 12, 2010

Yeah, it should work for any ruby project. I use Gemfiles even for one-off spikes nowadays. The only hiccup, I suppose, is coordinating your Gemfile with your gemspec.

@rmm5t
Copy link

rmm5t commented Feb 10, 2011

You guy might have already seen my blog post from today, but for posterity sake, here's more detail about my usage of bundler and rvm for applications. This comment thread was actually what originally set the spark to write this post.

http://ryan.mcgeary.org/2011/02/09/vendor-everything-still-applies/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment