I want to split up my Brewfile into multiple Brewfiles to separate some programs and apps into different sections and I can do some easy customisation of new MacOS machines and install specific Brewfiles for certain packages.
Here is a link to the docs I read. Now I'm trying to use the file or brewfile commands to load a Brewfile.
Here is a short example of what I have and what I believe should be working:
brewfile "brewfiles/work.Brewfile"
brewfile "brewfiles/devtools.Brewfile"
The files exist and should be valid Brewfiles. When I run a brew bundle command, I get this error:
❯ brew bundle check --verbose
Error: Invalid Brewfile: undefined method `brewfile' for an instance of Bundle::Dsl
I don't understand because the docs I've linked directly talk about this command, so I don't know why it is "undefined".
Using the file command gives the exact same error but swap brewfile for file.