Skip to content

Instantly share code, notes, and snippets.

@masukomi
Created December 9, 2011 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masukomi/1451438 to your computer and use it in GitHub Desktop.
Save masukomi/1451438 to your computer and use it in GitHub Desktop.
bundle show all (for bundlr)
# I wanted a way to combine bundle list with bundle show so that i could show
# the location of all the gems bundlr was managing.
# this does it (at least on unix / OS X )
# The first line is always an error message from bundlr because the first line of
# bundle list's output is "Gems included by the bundle:" which, obviously
# isn't a valid gem name.
bundle list | perl -pi -e 's/\s+\*\s(\S+)\s+.*/$1/' | while read line ; do bundle show $line ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment