Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automate Caskfile #4710

Closed
tcarlsen opened this issue Jun 6, 2014 · 4 comments
Closed

automate Caskfile #4710

tcarlsen opened this issue Jun 6, 2014 · 4 comments

Comments

@tcarlsen
Copy link
Contributor

tcarlsen commented Jun 6, 2014

A way to create a Caskfile based on the casks you have installed on your system.
like doing brew cask list >> Caskfile but with cask install as a prefix before all the cask listed

Maybe even a way to keep it up to date, so every time you install a new cask or uninstalling a old cask the Caskfile will automatically update

@vitorgalvao
Copy link
Member

brew cask list | sed 's/^/cask install /' > Caskfile. Run that command in your shell, and you’ll have it.

Not sure what your use-case for having it always up to date would be, but that is probably more suited for when #3066 lands. Either way, you can currently do it with your shell. Add to your .bashrc (or equivalent) something like

cask() {
  brew cask install $@
  brew cask list | sed 's/^/cask install /' > "${HOME}/Caskfile"
}

use cask instead of brew cask install to install apps, and you’ll always keep your Caskfile.

@tcarlsen
Copy link
Contributor Author

tcarlsen commented Jun 6, 2014

thx alot

@tcarlsen tcarlsen closed this as completed Jun 6, 2014
@rolandwalker
Copy link
Contributor

I want to add this functionality after we have #3066 and a ~/.brewcaskconfig file.

Let's add it to the roadmap at #4678 .

@tcarlsen , thanks for reminding me.

@tcarlsen
Copy link
Contributor Author

tcarlsen commented Jun 6, 2014

oh... I was of the impression that you guys did't like this idea?
nice to hear that it is coming in some form 👍 will be nice for my dotfiles 😄

tcarlsen added a commit to tcarlsen/dotfiles that referenced this issue Mar 30, 2015
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants