3 ms·
On install.
by Touche 11y ago
On install.
- _asummers 11y agoI feel like on update would be better. Answering a yes/no/never isn't that much of an ask, I don't think. And that way you get a chance to use the software before you have to make a decision.
- stock_toaster 11y agoOr if you want to cover existing users, just ask during the first interactive invocation, when there is no prior user chosen setting (works for new installs too)... pseudocode: choice = no if $brew_prefix/etc/homebrew.yaml: choice = read analytics $brew_prefix/etc/homebrew.yaml else: if interactive-tty and cmd != "--prefix": choice = ask-user "enable anonymous analytics (it helps us!)? Y/N: " write analytics=<choice> $brew_prefix/etc/homebrew.yaml if choice == yes: enable-analytics