Skip to content

Instantly share code, notes, and snippets.

@sd
Created February 9, 2012 16:01
Show Gist options
  • Save sd/1780813 to your computer and use it in GitHub Desktop.
Save sd/1780813 to your computer and use it in GitHub Desktop.
function bundle_exec {
if [[ -a Gemfile ]]; then
bundle exec $*
else
$*
fi
}
alias rake="bundle_exec rake"
alias cap="bundle_exec cap"
alias spec="bundle_exec spec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment