Last active
December 11, 2015 22:18
-
-
Save metavida/4668517 to your computer and use it in GitHub Desktop.
A handy rvm hook so that hitch automatically loads whenever you cd into an rvm project directory.
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
#!/usr/bin/env bash | |
# Add this file to your ~/.rvm/hooks/ directory to auto-initiate hitch | |
# whenever you cd into a project where the hitch gem is installed in the current rvm gemset. | |
if [[ -r ./.rvmrc && -n $(which hitch) && -x $(which hitch) ]]; then | |
echo 'Starting hitch' | |
hitch | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To quickly & easily install this file
Learn more about hitch and rvm hooks.