Created
March 16, 2016 13:42
-
-
Save 2called-chaos/c2ebcbac83fa3846670c to your computer and use it in GitHub Desktop.
binstubs light (hack)
This file contains hidden or 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
| # binstubs light | |
| function bundle_exec { | |
| bundler=`bundle list 2>&1` | |
| cmd=$1 | |
| shift | |
| if [[ $bundler == "" || $bundler =~ "Could not locate Gemfile" ]] | |
| then | |
| command="$cmd $@" | |
| else | |
| command="bundle exec $cmd $@" | |
| fi | |
| $command | |
| } | |
| alias cap='bundle exec cap' | |
| alias pry='bundle_exec pry' | |
| alias capify='bundle exec capify' | |
| alias ruby='bundle_exec ruby' | |
| alias rake='bundle_exec rake' | |
| alias unicorn='bundle_exec unicorn' | |
| alias rails='bundle_exec rails' | |
| alias guard='bundle_exec guard' | |
| alias spork='bundle_exec spork' | |
| alias yard='bundle_exec yard' | |
| alias rspec='bundle_exec rspec' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment