Created
October 12, 2010 14:00
-
-
Save metaskills/622202 to your computer and use it in GitHub Desktop.
This file contains 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
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 | |
} |
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 :)
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.
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
Off topic, but for projects, I don't find gemsets to be of much use. Every project should have a Gemfile and install the project gems in a .gitignore'd directory. I really don't like the default behavior that
bundle install
has such that it installs gems to the current gem path. I like my project's gems to be installed under a gitignored vendor directory.All my project's gems are kept with the project itself (because of
--path vendor
), everyone has access to the cache (because ofbundle package
), and gemsets are barely needed.