Homebrew / homebrew-bundle

📦 Bundler for non-Ruby dependencies from Homebrew, Homebrew Cask and the Mac App Store.
MIT License
5.36k stars 288 forks source link

Option to exclude/disable vscode in dump #1456

Closed JtMotoX closed 1 month ago

JtMotoX commented 2 months ago

Would it be possible to have a brew bundle dump flag, something like --no-vscode to disable the vscode integration? I use vscode built-in sync functionality and this is causing some issues.

Currently, I have to perform sed -i '/^vscode /d' $HOME/Brewfile after every dump.

jacobbednarz commented 1 month ago

today there isn't a way to selectively output some types over others. the assumption is that if you have it installed, you will want to manage it via brew bundle -- in your case, that isn't true.

i don't know how widely used this would be but open to leaving this here to gauge the interest and welcome a PR if you want to see this land.

JtMotoX commented 1 month ago

This has been requested in https://github.com/Homebrew/homebrew-bundle/issues/1209 and https://github.com/Homebrew/homebrew-bundle/issues/1212 so there are others that are interested in this option.

MikeMcQuaid commented 1 month ago

@JtMotoX would you prefer brew bundle dump --skip-vscode or something like export HOMEBREW_BUNDLE_NO_VSCODE=1?

JtMotoX commented 1 month ago

--skip-vscode would be preferred

JtMotoX commented 1 month ago

Works great! Thank you! 👍

MikeMcQuaid commented 1 month ago

@JtMotoX you're welcome, thanks for taking the time to say thanks!