Skip to content

Instantly share code, notes, and snippets.

@szimek
Created August 5, 2010 15:40
Show Gist options
  • Select an option

  • Save szimek/509909 to your computer and use it in GitHub Desktop.

Select an option

Save szimek/509909 to your computer and use it in GitHub Desktop.
Git hook to switch Ruby versions when changing branches
#!/bin/bash
if [ -f .rvmrc ]; then
source .rvmrc
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment