Last Updated: February 25, 2016
·
1.038K
· yachi

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) }