Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Similar to Jacob's answer, I'd recommend using <a href="https://rvm.io" rel="nofollow noreferrer">RVM</a>, but I'll expand on it. Here's some brainstorming ideas:</p> <p>RVM stores its sandbox in your home directory at <code>~/.rvm</code>. All Ruby instances, plus the associated gems will be stored there. It's a simple addition to the <code>~/.bashrc</code> file in your Mac to initialize RVM so it's known by the shell when you log into the account. It's also a simple <code>rm -rf ~/.rvm</code> from the commandline to remove the RVM sandbox from the account, followed by removing the line from the <code>~/.bashrc</code>. </p> <p>So, basically, by setting up RVM correctly and installing your Ruby installation on one machine, you're 90% of the way to having it available for multiple machines.</p> <p>I'm pretty sure Ruby will install without any dependencies on a current Mac OS using RVM, but there's a couple libraries that can improve the experience. After installing RVM, but before installing any Rubies, run <code>rvm notes</code>. That will show you what else to install. You'll need the current XCode to compile a Ruby, but only on the machine you do the compiling on. Once it's installed you should be able to move a RVM controlled Ruby around to other Macs by copying the <code>~/.rvm</code> directory. So, not only would you have the gems, you could have a particular version, or versions, of Ruby, plus the associated gems, so your regression tests could work too.</p> <p>If you use <a href="http://code.google.com/p/macvim/" rel="nofollow noreferrer">MacVim</a> you could install it in <code>~/bin</code> and have the GUI version. I haven't tried running it from there, but it seems like it'd work. You might need to create an alias from <code>/Applications</code> to the one in <code>~/bin</code> for double-clicking. </p> <p>MacVim comes with a shell script called <code>mvim</code> to launch it from the command-line. I have a bunch of softlinks to mine letting me call it from the command-line in various ways: <code>gvim</code>, and the gvim varients like <code>gvimdiff</code> and <code>gview</code>. You could do the same by adding <code>~/bin</code> to your <code>PATH</code> and making the links locally in that dir to MacVim's <code>mvim</code>.</p> <p>You could build a tarball of the vim config, vim installation and RVM sandbox, copy that to another Mac, expand it, add <code>~/bin</code> to your PATH and append the needed RVM initialization line in <code>~/.bashrc</code>, open a new command-line, and have your editor plus Ruby sandboxes. </p> <p>It's a minor variation on how my Mac and Linux boxes are set up. I haven't tried bundling everything together, but, on Macs that are the same OS version, it should work.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload