seethroughdev / homebrew-dotfile-generator

A custom generator for your homebrew dotfiles
73 stars 5 forks source link

Brewfile? #1

Closed leoj3n closed 10 years ago

leoj3n commented 10 years ago

Have you considered generating a Brewfile instead of .cask?

See: :beer: https://github.com/Homebrew/homebrew/pull/24107

Example: https://github.com/pstadler/dotfiles/blob/master/Caskfile

seethroughdev commented 10 years ago

Yeah, that seems really cool. And looks like its integrating directly into homebrew. I could broaden the scope of this project to check for existing brew packages as well. And generate a .brew instead of a .cask. Is that what you're thinking would be best? I haven't used brew bundle yet. So not sure if that already covers this.

leoj3n commented 10 years ago

Well since your program already assumes homebrew is installed, all it needs to do is "reverse bundle".

Essentially that means spitting out a Brewfile and a Caskfile. That'd make the most sense, I think.

Then users can use the brew bundle command on those files, respectively.

leoj3n commented 10 years ago

You might rename the repo to "brew-reverse-bundle" or something like that.

seethroughdev commented 10 years ago

Yeah, I like that...

Ideally it should scan your installed brew files to give you a full list for both brew and cask. For cask, I parse the github repo for casks. Let me see how I can get a list of just brews. I'll update in a bit.

seethroughdev commented 10 years ago

Okay, I'm really close. Will push something new tomorrow.

seethroughdev commented 10 years ago

Okay, did a full rewrite to include Brewfile and Caskfiles. It also generates a .brew file. If you get a chance to try it, I'd love some feedback on it.

seethroughdev commented 10 years ago

Hey @leoj3n, the app is ready for some testing, if you feel like it does the trick, I'll go ahead and close this issue. Let me know. Thanks.

leoj3n commented 10 years ago

I wouldn't add the dot in front of Brewfile or Caskfile, f.ex: https://coderwall.com/p/afmnbq

Anyways, it works wonders! This is extremely useful. I'd actually like to see this in homebrew and brew-cask as core functions but the devil's in the details so for now this is perfect!

pstadler commented 10 years ago

I'd remove the dot in front of Brewfile and Caskfile as well.

A couple of remarks:

:+1:

seethroughdev commented 10 years ago

Thanks @leoj3n and @pstadler for taking a closer look...

I removed the dot before the Brewfile and Caskfile.

Thanks again. And let me know any time if you guys see something that needs improvement.