bundle grep $1
Grep keyword for gems in Gemfile
add this to your .bashrc or .zshrc
bung () {
ag "$@" `bundle show --paths`
}
You may replace "ag" with "ack" or "grep -r"
Usage
$ bung user_klass
/usr/local/opt/rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/rspec-expectations-2.14.3/spec/rspec/matchers/be_instance_of_spec.rb
34: let(:user_klass) do
42: before { stub_const("User", user_klass) }
Written by yachi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#