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 9: rubygem-bundler 4.0.16-35.module_el9+1443+8853c6a2 Β· MIT AND (Ruby OR BSD-2-Clause)
- fedora 44: rubygem-bundler 4.0.20-39.fc44
- fedora 44: rubygem-bundler 4.0.20-40.fc44 Β· MIT AND (Ruby OR BSD-2-Clause)
- ubuntu stonking: ruby-bundler 4.0.18-1 Β· MIT OR Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms