BUNDLE-OPEN(1)
β¨ NAME β¨
bundle-open β the lil' bestie that pops open the source directory for a gem in your bundle π«Ά
πΈ SYNOPSIS πΈ
bundle open [GEM] [--path=PATH]
π DESCRIPTION π
Okay so picture this: you've got a gem sitting all cozy in your bundle, and you wanna peek at its actual source code. That's literally what bundle open is for β it opens up the source directory of the GEM you hand it, right there in your editor. Main character behaviour, honestly. π
But β and this is the part people always forget β for any of this to work, your EDITOR or BUNDLER_EDITOR environment variable has to be set. No editor variable, no vibes. It's giving "I forgot my keys." π
Let's do examples, because examples ate and left no crumbs:
bundle open 'rack'
This one opens the source directory for the 'rack' gem in your bundle. Boom. Straight to the source. π
bundle open 'rack' --path 'README.md'
And this one? This one opens the README.md file of the 'rack' gem source in your bundle. So like, you can point it at a specific file instead of the whole directory. Iconic. β
π OPTIONS π
--path[=PATH]β specify the GEM source relative path you wanna open. That's it, that's the whole option. π
Quick vibe check: ifEDITORandBUNDLER_EDITORare both unset, this whole thing is not gonna slay. Set one first. πΈ
Okay bestie that's the whole page β bundle-open(1) from the General Commands Manual, dated April 2026. Go open some source code, you absolute legend. πβ¨
π¦ where this page comes from
- centos-stream 10: ruby4.0 4.0.6-37.el10 Β· (Ruby OR BSD-2-Clause) AND (Ruby OR BSD-2-Clause OR GPL-1.0-or-later) AND BSD-3-Clause AND (GPL-3.0-or-later WITH Bison-exception-2.2) AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND CC0-1.0 AND zlib AND Unicode-DFS-2015 AND HPND-Markus-Kuhn AND Ruby-pty AND (Ruby OR BSD-2-Clause OR Python-2.0.1) AND BSD-2-Clause AND (Apache-2.0 OR BSL-1.0) AND GPL-2.0-only AND CC-BY-2.5 AND OFL-1.1-RFN AND BSL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms